casacore
|
#include <MSPointingColumns.h>
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 79 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 95 of file MSPointingColumns.h.
References antennaId_p.
|
inline |
Const access to required columns.
Definition at line 135 of file MSPointingColumns.h.
References antennaId_p.
|
protected |
|
private |
|
inline |
Definition at line 106 of file MSPointingColumns.h.
References direction_p.
|
inline |
Definition at line 149 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 107 of file MSPointingColumns.h.
References directionMeas_p.
|
inline |
Definition at line 150 of file MSPointingColumns.h.
References directionMeas_p.
|
inline |
Definition at line 126 of file MSPointingColumns.h.
References encoder_p.
|
inline |
Definition at line 167 of file MSPointingColumns.h.
References encoder_p.
|
inline |
Definition at line 127 of file MSPointingColumns.h.
References encoderMeas_p.
|
inline |
Definition at line 168 of file MSPointingColumns.h.
References encoderMeas_p.
|
inline |
Definition at line 99 of file MSPointingColumns.h.
References interval_p.
|
inline |
Definition at line 139 of file MSPointingColumns.h.
References interval_p.
|
inline |
Definition at line 100 of file MSPointingColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 140 of file MSPointingColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 101 of file MSPointingColumns.h.
References name_p.
|
inline |
Definition at line 142 of file MSPointingColumns.h.
References name_p.
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 192 of file MSPointingColumns.h.
References antennaId_p, and casacore::TableColumn::nrow().
|
inline |
Definition at line 102 of file MSPointingColumns.h.
References numPoly_p.
|
inline |
Definition at line 143 of file MSPointingColumns.h.
References numPoly_p.
|
inline |
Definition at line 129 of file MSPointingColumns.h.
References onSource_p.
|
inline |
Definition at line 172 of file MSPointingColumns.h.
References onSource_p.
|
private |
|
inline |
Definition at line 130 of file MSPointingColumns.h.
References overTheTop_p.
|
inline |
Definition at line 173 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 128 of file MSPointingColumns.h.
References pointingModelId_p.
|
inline |
Definition at line 170 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 120 of file MSPointingColumns.h.
References pointingOffset_p.
|
inline |
Access to optional columns.
Definition at line 160 of file MSPointingColumns.h.
References pointingOffset_p.
MDirection casacore::MSPointingColumns::pointingOffsetMeas | ( | rownr_t | row, |
Double | time = 0 |
||
) | const |
|
inline |
Definition at line 121 of file MSPointingColumns.h.
References pointingOffsetMeas_p.
|
inline |
Definition at line 162 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 123 of file MSPointingColumns.h.
References sourceOffset_p.
|
inline |
Definition at line 164 of file MSPointingColumns.h.
References sourceOffset_p.
MDirection casacore::MSPointingColumns::sourceOffsetMeas | ( | rownr_t | row, |
Double | time = 0 |
||
) | const |
|
inline |
Definition at line 124 of file MSPointingColumns.h.
References sourceOffsetMeas_p.
|
inline |
Definition at line 165 of file MSPointingColumns.h.
References sourceOffsetMeas_p.
|
inline |
Definition at line 108 of file MSPointingColumns.h.
References target_p.
|
inline |
Definition at line 152 of file MSPointingColumns.h.
References target_p.
MDirection casacore::MSPointingColumns::targetMeas | ( | rownr_t | row, |
Double | time = 0 |
||
) | const |
|
inline |
Definition at line 109 of file MSPointingColumns.h.
References targetMeas_p.
|
inline |
Definition at line 153 of file MSPointingColumns.h.
References targetMeas_p.
|
inline |
Definition at line 96 of file MSPointingColumns.h.
References time_p.
|
inline |
Definition at line 136 of file MSPointingColumns.h.
References time_p.
|
inline |
Definition at line 97 of file MSPointingColumns.h.
References timeMeas_p.
|
inline |
Definition at line 138 of file MSPointingColumns.h.
References timeMeas_p.
|
inline |
Definition at line 103 of file MSPointingColumns.h.
References timeOrigin_p.
|
inline |
Definition at line 144 of file MSPointingColumns.h.
References timeOrigin_p.
|
inline |
Definition at line 105 of file MSPointingColumns.h.
References timeOriginMeas_p.
|
inline |
Definition at line 147 of file MSPointingColumns.h.
References timeOriginMeas_p.
|
inline |
Definition at line 104 of file MSPointingColumns.h.
References timeOriginQuant_p.
|
inline |
Definition at line 145 of file MSPointingColumns.h.
References timeOriginQuant_p.
|
inline |
Definition at line 98 of file MSPointingColumns.h.
References timeQuant_p.
|
inline |
Definition at line 137 of file MSPointingColumns.h.
References timeQuant_p.
|
inline |
Definition at line 110 of file MSPointingColumns.h.
References tracking_p.
|
inline |
Definition at line 155 of file MSPointingColumns.h.
References tracking_p.
|
private |
Definition at line 236 of file MSPointingColumns.h.
Referenced by antennaId(), and nrow().
|
private |
Definition at line 237 of file MSPointingColumns.h.
Referenced by direction().
|
private |
Definition at line 254 of file MSPointingColumns.h.
Referenced by directionMeasCol().
|
private |
Definition at line 246 of file MSPointingColumns.h.
Referenced by encoder().
|
private |
Definition at line 259 of file MSPointingColumns.h.
Referenced by encoderMeas().
|
private |
Definition at line 238 of file MSPointingColumns.h.
Referenced by interval().
|
private |
Definition at line 264 of file MSPointingColumns.h.
Referenced by intervalQuant().
|
private |
Definition at line 239 of file MSPointingColumns.h.
Referenced by name().
|
private |
Definition at line 240 of file MSPointingColumns.h.
Referenced by numPoly().
|
private |
Definition at line 247 of file MSPointingColumns.h.
Referenced by onSource().
|
private |
Definition at line 251 of file MSPointingColumns.h.
Referenced by overTheTop().
|
private |
Definition at line 248 of file MSPointingColumns.h.
Referenced by pointingModelId().
|
private |
Definition at line 249 of file MSPointingColumns.h.
Referenced by pointingOffset().
|
private |
Definition at line 260 of file MSPointingColumns.h.
Referenced by pointingOffsetMeasCol().
|
private |
Definition at line 250 of file MSPointingColumns.h.
Referenced by sourceOffset().
|
private |
Definition at line 261 of file MSPointingColumns.h.
Referenced by sourceOffsetMeasCol().
|
private |
Definition at line 241 of file MSPointingColumns.h.
Referenced by target().
|
private |
Definition at line 255 of file MSPointingColumns.h.
Referenced by targetMeasCol().
|
private |
Definition at line 242 of file MSPointingColumns.h.
Referenced by time().
|
private |
Definition at line 256 of file MSPointingColumns.h.
Referenced by timeMeas().
|
private |
Definition at line 243 of file MSPointingColumns.h.
Referenced by timeOrigin().
|
private |
Definition at line 257 of file MSPointingColumns.h.
Referenced by timeOriginMeas().
|
private |
Definition at line 266 of file MSPointingColumns.h.
Referenced by timeOriginQuant().
|
private |
Definition at line 265 of file MSPointingColumns.h.
Referenced by timeQuant().
|
private |
Definition at line 244 of file MSPointingColumns.h.
Referenced by tracking().