casacore
Loading...
Searching...
No Matches
DerivedColumn.h
Go to the documentation of this file.
1//# DerivedColumn.h: A derived MS column.
2//# Copyright (C) 2010
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef DERIVEDMSCAL_DERIVEDCOLUMN_H
27#define DERIVEDMSCAL_DERIVEDCOLUMN_H
28
29
30//# Includes
31#include <casacore/casa/aips.h>
32#include <casacore/derivedmscal/DerivedMC/MSCalEngine.h>
33#include <casacore/tables/DataMan/VirtScaCol.h>
34#include <casacore/tables/DataMan/VirtArrCol.h>
35
36namespace casacore {
37
38
39 // <summary>Hourangle derived from TIME, etc.</summary>
40 // <use visibility=local>
41 class HourangleColumn : public VirtualScalarColumn<Double>
42 {
43 public:
44 explicit HourangleColumn (MSCalEngine* engine, Int antnr)
45 : itsEngine (engine),
46 itsAntNr (antnr)
47 {}
48 virtual ~HourangleColumn();
49 virtual void get (rownr_t rowNr, Double& data);
50 private:
52 Int itsAntNr; //# -1=array 0=antenna1 1=antenna2
53 };
54
55
56 // <summary>Local sidereal time derived from TIME, etc.</summary>
57 // <use visibility=local>
58 class LASTColumn : public VirtualScalarColumn<Double>
59 {
60 public:
61 explicit LASTColumn (MSCalEngine* engine, Int antnr)
62 : itsEngine (engine),
63 itsAntNr (antnr)
64 {}
65 virtual ~LASTColumn();
66 virtual void get (rownr_t rowNr, Double& data);
67 private:
69 Int itsAntNr; //# -1=array 0=antenna1 1=antenna2
70 };
71
72
73 // <summary>Parallactic angle derived from TIME, etc.</summary>
74 // <use visibility=local>
75 class ParAngleColumn : public VirtualScalarColumn<Double>
76 {
77 public:
78 explicit ParAngleColumn (MSCalEngine* engine, Int antnr)
79 : itsEngine (engine),
80 itsAntNr (antnr)
81 {}
82 virtual ~ParAngleColumn();
83 virtual void get (rownr_t rowNr, Double& data);
84 private:
86 Int itsAntNr; //# 0=antenna1 1=antenna2
87 };
88
89
90 // <summary>Hourangle/declination derived from TIME, etc.</summary>
91 // <use visibility=local>
92 class HaDecColumn : public VirtualArrayColumn<Double>
93 {
94 public:
95 explicit HaDecColumn (MSCalEngine* engine, Int antnr)
96 : itsEngine (engine),
97 itsAntNr (antnr)
98 {}
99 virtual ~HaDecColumn();
100 virtual IPosition shape (rownr_t rownr);
101 virtual Bool isShapeDefined (rownr_t rownr);
102 virtual void getArray (rownr_t rowNr, Array<Double>& data);
103 private:
105 Int itsAntNr; //# 0=antenna1 1=antenna2
106 };
107
108
109 // <summary>Azimuth/elevation derived from TIME, etc.</summary>
110 // <use visibility=local>
111 class AzElColumn : public VirtualArrayColumn<Double>
113 public:
114 explicit AzElColumn (MSCalEngine* engine, Int antnr)
115 : itsEngine (engine),
116 itsAntNr (antnr)
117 {}
118 virtual ~AzElColumn();
119 virtual IPosition shape (rownr_t rownr);
120 virtual Bool isShapeDefined (rownr_t rownr);
121 virtual void getArray (rownr_t rowNr, Array<Double>& data);
122 private:
124 Int itsAntNr; //# 0=antenna1 1=antenna2
125 };
126
127
128 // <summary>Pointing ITRF coordinate derived from TIME, etc.</summary>
129 // <use visibility=local>
130 class ItrfColumn : public VirtualArrayColumn<Double>
132 public:
133 explicit ItrfColumn (MSCalEngine* engine, Int antnr)
134 : itsEngine (engine),
135 itsAntNr (antnr)
136 {}
137 virtual ~ItrfColumn();
138 virtual IPosition shape (rownr_t rownr);
139 virtual Bool isShapeDefined (rownr_t rownr);
140 virtual void getArray (rownr_t rowNr, Array<Double>& data);
141 private:
143 Int itsAntNr; //# 0=antenna1 1=antenna2
144 };
145
146
147 // <summary>UVW J2000 derived from TIME, etc.</summary>
148 // <use visibility=local>
149 class UVWJ2000Column : public VirtualArrayColumn<Double>
151 public:
152 explicit UVWJ2000Column (MSCalEngine* engine)
153 : itsEngine (engine)
154 {}
155 virtual ~UVWJ2000Column();
156 virtual IPosition shape (rownr_t rownr);
157 virtual Bool isShapeDefined (rownr_t rownr);
158 virtual void getArray (rownr_t rowNr, Array<Double>& data);
159 private:
161 };
162
163
164} //# end namespace
165
166#endif
Azimuth/elevation derived from TIME, etc.
virtual Bool isShapeDefined(rownr_t rownr)
Is the value shape defined in the given row? By default it throws a "not possible" exception.
virtual void getArray(rownr_t rowNr, Array< Double > &data)
Get the array value in the given row.
AzElColumn(MSCalEngine *engine, Int antnr)
virtual IPosition shape(rownr_t rownr)
Get the shape of the item in the given row.
MSCalEngine * itsEngine
Hourangle/declination derived from TIME, etc.
virtual IPosition shape(rownr_t rownr)
Get the shape of the item in the given row.
virtual Bool isShapeDefined(rownr_t rownr)
Is the value shape defined in the given row? By default it throws a "not possible" exception.
HaDecColumn(MSCalEngine *engine, Int antnr)
virtual void getArray(rownr_t rowNr, Array< Double > &data)
Get the array value in the given row.
MSCalEngine * itsEngine
virtual void get(rownr_t rowNr, Double &data)
Let a derived class get the scalar value in the given row.
HourangleColumn(MSCalEngine *engine, Int antnr)
Pointing ITRF coordinate derived from TIME, etc.
ItrfColumn(MSCalEngine *engine, Int antnr)
virtual void getArray(rownr_t rowNr, Array< Double > &data)
Get the array value in the given row.
virtual IPosition shape(rownr_t rownr)
Get the shape of the item in the given row.
MSCalEngine * itsEngine
virtual Bool isShapeDefined(rownr_t rownr)
Is the value shape defined in the given row? By default it throws a "not possible" exception.
Local sidereal time derived from TIME, etc.
MSCalEngine * itsEngine
virtual void get(rownr_t rowNr, Double &data)
Let a derived class get the scalar value in the given row.
LASTColumn(MSCalEngine *engine, Int antnr)
Parallactic angle derived from TIME, etc.
virtual void get(rownr_t rowNr, Double &data)
Let a derived class get the scalar value in the given row.
ParAngleColumn(MSCalEngine *engine, Int antnr)
UVW J2000 derived from TIME, etc.
virtual IPosition shape(rownr_t rownr)
Get the shape of the item in the given row.
virtual void getArray(rownr_t rowNr, Array< Double > &data)
Get the array value in the given row.
virtual Bool isShapeDefined(rownr_t rownr)
Is the value shape defined in the given row? By default it throws a "not possible" exception.
UVWJ2000Column(MSCalEngine *engine)
this file contains all the compiler specific defines
Definition mainpage.dox:28
int Int
Definition aipstype.h:48
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
double Double
Definition aipstype.h:53
uInt64 rownr_t
Define the type of a row number in a table.
Definition aipsxtype.h:44