casacore
|
#include <MSPointingColumns.h>
Public Member Functions | |
MSPointingColumns (const MSPointing &msPointing) | |
Construct from the supplied Table. | |
~MSPointingColumns () | |
The destructor does nothing special. | |
ScalarColumn< Int > & | antennaId () |
Access to required columns. | |
ScalarColumn< Double > & | time () |
ScalarMeasColumn< MEpoch > & | timeMeas () |
ScalarQuantColumn< Double > & | timeQuant () |
ScalarColumn< Double > & | interval () |
ScalarQuantColumn< Double > & | intervalQuant () |
ScalarColumn< String > & | name () |
ScalarColumn< Int > & | numPoly () |
ScalarColumn< Double > & | timeOrigin () |
ScalarQuantColumn< Double > & | timeOriginQuant () |
ScalarMeasColumn< MEpoch > & | timeOriginMeas () |
ArrayColumn< Double > & | direction () |
ArrayMeasColumn< MDirection > & | directionMeasCol () |
ArrayColumn< Double > & | target () |
ArrayMeasColumn< MDirection > & | targetMeasCol () |
ScalarColumn< Bool > & | tracking () |
ArrayColumn< Double > & | pointingOffset () |
Access to optional columns. | |
ArrayMeasColumn< MDirection > & | pointingOffsetMeasCol () |
ArrayColumn< Double > & | sourceOffset () |
ArrayMeasColumn< MDirection > & | sourceOffsetMeasCol () |
ArrayColumn< Double > & | encoder () |
ScalarMeasColumn< MDirection > & | encoderMeas () |
ScalarColumn< Int > & | pointingModelId () |
ScalarColumn< Bool > & | onSource () |
ScalarColumn< Bool > & | overTheTop () |
const ScalarColumn< Int > & | antennaId () const |
Const access to required columns. | |
const ScalarColumn< Double > & | time () const |
const ScalarQuantColumn< Double > & | timeQuant () const |
const ScalarMeasColumn< MEpoch > & | timeMeas () const |
const ScalarColumn< Double > & | interval () const |
const ScalarQuantColumn< Double > & | intervalQuant () const |
const ScalarColumn< String > & | name () const |
const ScalarColumn< Int > & | numPoly () const |
const ScalarColumn< Double > & | timeOrigin () const |
const ScalarQuantColumn< Double > & | timeOriginQuant () const |
const ScalarMeasColumn< MEpoch > & | timeOriginMeas () const |
const ArrayColumn< Double > & | direction () const |
const ArrayMeasColumn< MDirection > & | directionMeasCol () const |
const ArrayColumn< Double > & | target () const |
const ArrayMeasColumn< MDirection > & | targetMeasCol () const |
const ScalarColumn< Bool > & | tracking () const |
const ArrayColumn< Double > & | pointingOffset () const |
Access to optional columns. | |
const ArrayMeasColumn< MDirection > & | pointingOffsetMeasCol () const |
const ArrayColumn< Double > & | sourceOffset () const |
const ArrayMeasColumn< MDirection > & | sourceOffsetMeasCol () const |
const ArrayColumn< Double > & | encoder () const |
const ScalarMeasColumn< MDirection > & | encoderMeas () const |
const ScalarColumn< Int > & | pointingModelId () const |
const ScalarColumn< Bool > & | onSource () const |
const ScalarColumn< Bool > & | overTheTop () const |
MDirection | directionMeas (rownr_t row, Double time=0) const |
Access to interpolated directions, the default time of zero will return the 0th order element of the polynomial. | |
MDirection | targetMeas (rownr_t row, Double time=0) const |
MDirection | pointingOffsetMeas (rownr_t row, Double time=0) const |
MDirection | sourceOffsetMeas (rownr_t row, Double time=0) const |
Int64 | pointingIndex (Int antenna, Double time, Int64 guessRow=0) const |
return the first matching row index for this time and antenna, returns -1 if no match was found For long tables you may give a guess row...the last return is usually a good one. | |
rownr_t | nrow () const |
Convenience function that returns the number of rows in any of the columns. | |
void | setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True) |
set the epoch reference type for the TIME & TIME_ORIGIN column. | |
void | setDirectionRef (MDirection::Types ref) |
set the direction reference type for the DIRECTION, TARGET & and, if defined, the SOURCE_OFFSET & POINTING_OFFSET columns. | |
void | setEncoderDirectionRef (MDirection::Types ref) |
set the direction reference type for the ENCODER column (if it is defined). | |
Protected Member Functions | |
MSPointingColumns () | |
void | attach (const MSPointing &msPointing) |
Private Member Functions | |
MSPointingColumns (const MSPointingColumns &) | |
MSPointingColumns & | operator= (const MSPointingColumns &) |
void | attachOptionalCols (const MSPointing &msPointing) |
A class to provide easy access to MSPointing columns
Public interface
MSPointingColumns stands for MeasurementSet Pointing Table columns.
This class provides access to the columns in the MSPointing Table, it does the declaration of all the Scalar and ArrayColumns with the correct types, so the application programmer doesn't have to worry about getting those right. There is an access function for every predefined column. Access to non-predefined columns will still have to be done with explicit declarations. See MSColumns for an example.
See MSColumns for the motivation.
Definition at line 77 of file MSPointingColumns.h.
casacore::MSPointingColumns::MSPointingColumns | ( | const MSPointing & | msPointing | ) |
Construct from the supplied Table.
casacore::MSPointingColumns::~MSPointingColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
|
inline |
Access to required columns.
Note that the direction measures with a stored polynomial have Col() added to their name. They are better accessed via the functions that have the same name, without the Col suffix, that will do the interpolation for you.
Definition at line 93 of file MSPointingColumns.h.
References antennaId_p.
|
inline |
Const access to required columns.
Definition at line 133 of file MSPointingColumns.h.
References antennaId_p.
|
protected |
|
private |
|
inline |
Definition at line 104 of file MSPointingColumns.h.
References direction_p.
|
inline |
Definition at line 147 of file MSPointingColumns.h.
References direction_p.
MDirection casacore::MSPointingColumns::directionMeas | ( | rownr_t | row, |
Double | time = 0 |
||
) | const |
Access to interpolated directions, the default time of zero will return the 0th order element of the polynomial.
|
inline |
Definition at line 105 of file MSPointingColumns.h.
References directionMeas_p.
|
inline |
Definition at line 148 of file MSPointingColumns.h.
References directionMeas_p.
|
inline |
Definition at line 124 of file MSPointingColumns.h.
References encoder_p.
|
inline |
Definition at line 165 of file MSPointingColumns.h.
References encoder_p.
|
inline |
Definition at line 125 of file MSPointingColumns.h.
References encoderMeas_p.
|
inline |
Definition at line 166 of file MSPointingColumns.h.
References encoderMeas_p.
|
inline |
Definition at line 97 of file MSPointingColumns.h.
References interval_p.
|
inline |
Definition at line 137 of file MSPointingColumns.h.
References interval_p.
|
inline |
Definition at line 98 of file MSPointingColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 138 of file MSPointingColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 99 of file MSPointingColumns.h.
References name_p.
|
inline |
Definition at line 140 of file MSPointingColumns.h.
References name_p.
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 190 of file MSPointingColumns.h.
References antennaId_p, and casacore::TableColumn::nrow().
|
inline |
Definition at line 100 of file MSPointingColumns.h.
References numPoly_p.
|
inline |
Definition at line 141 of file MSPointingColumns.h.
References numPoly_p.
|
inline |
Definition at line 127 of file MSPointingColumns.h.
References onSource_p.
|
inline |
Definition at line 170 of file MSPointingColumns.h.
References onSource_p.
|
private |
|
inline |
Definition at line 128 of file MSPointingColumns.h.
References overTheTop_p.
|
inline |
Definition at line 171 of file MSPointingColumns.h.
References overTheTop_p.
Int64 casacore::MSPointingColumns::pointingIndex | ( | Int | antenna, |
Double | time, | ||
Int64 | guessRow = 0 |
||
) | const |
return the first matching row index for this time and antenna, returns -1 if no match was found For long tables you may give a guess row...the last return is usually a good one.
|
inline |
Definition at line 126 of file MSPointingColumns.h.
References pointingModelId_p.
|
inline |
Definition at line 168 of file MSPointingColumns.h.
References pointingModelId_p.
|
inline |
Access to optional columns.
Note that the direction measures with a stored polynomial have Col() added to their name. They are better accessed via the functions that have the same name, without the Col suffix, that will do the interpolation for you.
Definition at line 118 of file MSPointingColumns.h.
References pointingOffset_p.
|
inline |
Access to optional columns.
Definition at line 158 of file MSPointingColumns.h.
References pointingOffset_p.
MDirection casacore::MSPointingColumns::pointingOffsetMeas | ( | rownr_t | row, |
Double | time = 0 |
||
) | const |
|
inline |
Definition at line 119 of file MSPointingColumns.h.
References pointingOffsetMeas_p.
|
inline |
Definition at line 160 of file MSPointingColumns.h.
References pointingOffsetMeas_p.
void casacore::MSPointingColumns::setDirectionRef | ( | MDirection::Types | ref | ) |
set the direction reference type for the DIRECTION, TARGET & and, if defined, the SOURCE_OFFSET & POINTING_OFFSET columns.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception. Note that the optional ENCODER column must be done separately as the MSv2 definition requires this column to use the frame(s) of the antenna mounts.
void casacore::MSPointingColumns::setEncoderDirectionRef | ( | MDirection::Types | ref | ) |
set the direction reference type for the ENCODER column (if it is defined).
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casacore::MSPointingColumns::setEpochRef | ( | MEpoch::Types | ref, |
Bool | tableMustBeEmpty = True |
||
) |
set the epoch reference type for the TIME & TIME_ORIGIN column.
Tip: In principle this function can only be used if the table is empty, otherwise already written values may thereafter have an incorrect reference, offset, or unit; However, it is possible that part of the table gets written before these values are known; In that case the reference, offset, or units can be set by using a False tableMustBeEmpty
argument;
|
inline |
Definition at line 121 of file MSPointingColumns.h.
References sourceOffset_p.
|
inline |
Definition at line 162 of file MSPointingColumns.h.
References sourceOffset_p.
MDirection casacore::MSPointingColumns::sourceOffsetMeas | ( | rownr_t | row, |
Double | time = 0 |
||
) | const |
|
inline |
Definition at line 122 of file MSPointingColumns.h.
References sourceOffsetMeas_p.
|
inline |
Definition at line 163 of file MSPointingColumns.h.
References sourceOffsetMeas_p.
|
inline |
Definition at line 106 of file MSPointingColumns.h.
References target_p.
|
inline |
Definition at line 150 of file MSPointingColumns.h.
References target_p.
MDirection casacore::MSPointingColumns::targetMeas | ( | rownr_t | row, |
Double | time = 0 |
||
) | const |
|
inline |
Definition at line 107 of file MSPointingColumns.h.
References targetMeas_p.
|
inline |
Definition at line 151 of file MSPointingColumns.h.
References targetMeas_p.
|
inline |
Definition at line 94 of file MSPointingColumns.h.
References time_p.
|
inline |
Definition at line 134 of file MSPointingColumns.h.
References time_p.
|
inline |
Definition at line 95 of file MSPointingColumns.h.
References timeMeas_p.
|
inline |
Definition at line 136 of file MSPointingColumns.h.
References timeMeas_p.
|
inline |
Definition at line 101 of file MSPointingColumns.h.
References timeOrigin_p.
|
inline |
Definition at line 142 of file MSPointingColumns.h.
References timeOrigin_p.
|
inline |
Definition at line 103 of file MSPointingColumns.h.
References timeOriginMeas_p.
|
inline |
Definition at line 145 of file MSPointingColumns.h.
References timeOriginMeas_p.
|
inline |
Definition at line 102 of file MSPointingColumns.h.
References timeOriginQuant_p.
|
inline |
Definition at line 143 of file MSPointingColumns.h.
References timeOriginQuant_p.
|
inline |
Definition at line 96 of file MSPointingColumns.h.
References timeQuant_p.
|
inline |
Definition at line 135 of file MSPointingColumns.h.
References timeQuant_p.
|
inline |
Definition at line 108 of file MSPointingColumns.h.
References tracking_p.
|
inline |
Definition at line 153 of file MSPointingColumns.h.
References tracking_p.
|
private |
Definition at line 234 of file MSPointingColumns.h.
Referenced by antennaId(), antennaId(), and nrow().
|
private |
Definition at line 235 of file MSPointingColumns.h.
Referenced by direction(), and direction().
|
private |
Definition at line 252 of file MSPointingColumns.h.
Referenced by directionMeasCol(), and directionMeasCol().
|
private |
Definition at line 244 of file MSPointingColumns.h.
|
private |
Definition at line 257 of file MSPointingColumns.h.
Referenced by encoderMeas(), and encoderMeas().
|
private |
Definition at line 236 of file MSPointingColumns.h.
Referenced by interval(), and interval().
|
private |
Definition at line 262 of file MSPointingColumns.h.
Referenced by intervalQuant(), and intervalQuant().
|
private |
Definition at line 237 of file MSPointingColumns.h.
|
private |
Definition at line 238 of file MSPointingColumns.h.
|
private |
Definition at line 245 of file MSPointingColumns.h.
Referenced by onSource(), and onSource().
|
private |
Definition at line 249 of file MSPointingColumns.h.
Referenced by overTheTop(), and overTheTop().
|
private |
Definition at line 246 of file MSPointingColumns.h.
Referenced by pointingModelId(), and pointingModelId().
|
private |
Definition at line 247 of file MSPointingColumns.h.
Referenced by pointingOffset(), and pointingOffset().
|
private |
Definition at line 258 of file MSPointingColumns.h.
Referenced by pointingOffsetMeasCol(), and pointingOffsetMeasCol().
|
private |
Definition at line 248 of file MSPointingColumns.h.
Referenced by sourceOffset(), and sourceOffset().
|
private |
Definition at line 259 of file MSPointingColumns.h.
Referenced by sourceOffsetMeasCol(), and sourceOffsetMeasCol().
|
private |
Definition at line 239 of file MSPointingColumns.h.
|
private |
Definition at line 253 of file MSPointingColumns.h.
Referenced by targetMeasCol(), and targetMeasCol().
|
private |
Definition at line 240 of file MSPointingColumns.h.
|
private |
Definition at line 254 of file MSPointingColumns.h.
Referenced by timeMeas(), and timeMeas().
|
private |
Definition at line 241 of file MSPointingColumns.h.
Referenced by timeOrigin(), and timeOrigin().
|
private |
Definition at line 255 of file MSPointingColumns.h.
Referenced by timeOriginMeas(), and timeOriginMeas().
|
private |
Definition at line 264 of file MSPointingColumns.h.
Referenced by timeOriginQuant(), and timeOriginQuant().
|
private |
Definition at line 263 of file MSPointingColumns.h.
Referenced by timeQuant(), and timeQuant().
|
private |
Definition at line 242 of file MSPointingColumns.h.
Referenced by tracking(), and tracking().