DerivedColumn.h

Go to the documentation of this file.
00001 //# DerivedColumn.h: A derived MS column.
00002 //# Copyright (C) 2010
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 addressed 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 //# $Id$
00027 
00028 #ifndef DERIVEDMSCAL_DERIVEDCOLUMN_H
00029 #define DERIVEDMSCAL_DERIVEDCOLUMN_H
00030 
00031 
00032 //# Includes
00033 #include <casacore/casa/aips.h>
00034 #include <casacore/derivedmscal/DerivedMC/MSCalEngine.h>
00035 #include <casacore/tables/DataMan/VirtScaCol.h>
00036 #include <casacore/tables/DataMan/VirtArrCol.h>
00037 
00038 namespace casacore {
00039 
00040 
00041   // <summary>Hourangle derived from TIME, etc.</summary>
00042   // <use visibility=local>
00043   class HourangleColumn : public VirtualScalarColumn<Double>
00044   {
00045   public:
00046     explicit HourangleColumn (MSCalEngine* engine, Int antnr)
00047       : itsEngine (engine),
00048         itsAntNr  (antnr)
00049     {}
00050     virtual ~HourangleColumn();
00051     virtual void get (uInt rowNr, Double& data);
00052   private:
00053     MSCalEngine* itsEngine;
00054     Int          itsAntNr;    //# -1=array 0=antenna1 1=antenna2
00055   };
00056 
00057 
00058   // <summary>Local sidereal time derived from TIME, etc.</summary>
00059   // <use visibility=local>
00060   class LASTColumn : public VirtualScalarColumn<Double>
00061   {
00062   public:
00063     explicit LASTColumn (MSCalEngine* engine, Int antnr)
00064       : itsEngine (engine),
00065         itsAntNr  (antnr)
00066     {}
00067     virtual ~LASTColumn();
00068     virtual void get (uInt rowNr, Double& data);
00069   private:
00070     MSCalEngine* itsEngine;
00071     Int          itsAntNr;    //# -1=array 0=antenna1 1=antenna2
00072   };
00073 
00074 
00075   // <summary>Parallactic angle derived from TIME, etc.</summary>
00076   // <use visibility=local>
00077   class ParAngleColumn : public VirtualScalarColumn<Double>
00078   {
00079   public:
00080     explicit ParAngleColumn (MSCalEngine* engine, Int antnr)
00081       : itsEngine (engine),
00082         itsAntNr  (antnr)
00083     {}
00084     virtual ~ParAngleColumn();
00085     virtual void get (uInt rowNr, Double& data);
00086   private:
00087     MSCalEngine* itsEngine;
00088     Int          itsAntNr;    //# 0=antenna1 1=antenna2
00089   };
00090 
00091 
00092   // <summary>Hourangle/declination derived from TIME, etc.</summary>
00093   // <use visibility=local>
00094   class HaDecColumn : public VirtualArrayColumn<Double>
00095   {
00096   public:
00097     explicit HaDecColumn (MSCalEngine* engine, Int antnr)
00098       : itsEngine (engine),
00099         itsAntNr  (antnr)
00100     {}
00101     virtual ~HaDecColumn();
00102     virtual IPosition shape (uInt rownr);
00103     virtual void getArray (uInt rowNr, Array<Double>& data);
00104   private:
00105     MSCalEngine* itsEngine;
00106     Int          itsAntNr;    //# 0=antenna1 1=antenna2
00107   };
00108 
00109 
00110   // <summary>Azimuth/elevation derived from TIME, etc.</summary>
00111   // <use visibility=local>
00112   class AzElColumn : public VirtualArrayColumn<Double>
00113   {
00114   public:
00115     explicit AzElColumn (MSCalEngine* engine, Int antnr)
00116       : itsEngine (engine),
00117         itsAntNr  (antnr)
00118     {}
00119     virtual ~AzElColumn();
00120     virtual IPosition shape (uInt rownr);
00121     virtual void getArray (uInt rowNr, Array<Double>& data);
00122   private:
00123     MSCalEngine* itsEngine;
00124     Int          itsAntNr;    //# 0=antenna1 1=antenna2
00125   };
00126 
00127 
00128   // <summary>UVW J2000 derived from TIME, etc.</summary>
00129   // <use visibility=local>
00130   class UVWJ2000Column : public VirtualArrayColumn<Double>
00131   {
00132   public:
00133     explicit UVWJ2000Column (MSCalEngine* engine)
00134       : itsEngine (engine)
00135     {}
00136     virtual ~UVWJ2000Column();
00137     virtual IPosition shape (uInt rownr);
00138     virtual void getArray (uInt rowNr, Array<Double>& data);
00139   private:
00140     MSCalEngine* itsEngine;
00141   };
00142 
00143 
00144 } //# end namespace
00145 
00146 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1