casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SDDataSampling.h
Go to the documentation of this file.
00001 //# SDDataSampling.h: Definition for SDDataSampling
00002 //# Copyright (C) 1996,1997,1998,1999,2000,2001
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be adressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //#
00027 //# $Id$
00028 
00029 #ifndef SYNTHESIS_SDDATASAMPLING_H
00030 #define SYNTHESIS_SDDATASAMPLING_H
00031 
00032 #include <synthesis/DataSampling/DataSampling.h>
00033 #include <synthesis/TransformMachines/SkyJones.h>
00034 #include <coordinates/Coordinates/CoordinateSystem.h>
00035 #include <casa/Arrays/Vector.h>
00036 #include <casa/Arrays/Matrix.h>
00037 #include <coordinates/Coordinates/DirectionCoordinate.h>
00038 
00039 namespace casa { //# NAMESPACE CASA - BEGIN
00040 
00041 class ROMSPointingColumns;
00042 
00043 // <summary> Provides sampling of single dish data for esimation algorithms
00044 // </summary>
00045 
00046 // <use visibility=export>
00047 
00048 // <reviewed reviewer="" date="" tests="" demos="">
00049 
00050 // <prerequisite>
00051 // </prerequisite>
00052 //
00053 // <etymology>
00054 // Samples single dish Data as needed for various estimation algorithms
00055 // </etymology>
00056 //
00057 // <synopsis> 
00058 // Esimation algorithms such as the Pixon method need sampled
00059 // and unitless versions of the data. This class is derived from
00060 // DataSampling. It adds methods specific to single dish data.
00061 // </synopsis> 
00062 //
00063 // <example>
00064 // </example>
00065 //
00066 // <motivation>
00067 // Define an interface to allow efficient processing of chunks of 
00068 // data
00069 // </motivation>
00070 //
00071 // <todo asof="01/03/03">
00072 // <ul> Derive more examples
00073 // </todo>
00074 
00075 class SDDataSampling : public DataSampling {
00076 public:
00077 
00078   SDDataSampling(MeasurementSet& ms, SkyJones& sj,
00079                  const CoordinateSystem& coords,
00080                  const IPosition& shape,
00081                  const Quantity& sigma);
00082 
00083   // Copy constructor
00084   SDDataSampling(const SDDataSampling &other);
00085 
00086   // Assignment operator
00087   SDDataSampling &operator=(const SDDataSampling &other);
00088 
00089   ~SDDataSampling();
00090 
00091 private:
00092 
00093   Int lastIndex_p;
00094 
00095   Int nRows_p;
00096 
00097   Int getIndex(const ROMSPointingColumns& mspc, const Double& time);
00098 
00099   void ok();
00100 
00101 };
00102 
00103 } //# NAMESPACE CASA - END
00104 
00105 #endif