casa
5.7.0-16
|
A class to provide easy read-only access to MSAntenna columns. More...
#include <MSAntennaColumns.h>
Public Member Functions | |
ROMSAntennaColumns (const MSAntenna &msAntenna) | |
Create a columns object that accesses the data in the specified Table. More... | |
~ROMSAntennaColumns () | |
The destructor does nothing special. More... | |
const ROScalarColumn< Double > & | dishDiameter () const |
Access to columns. More... | |
const ROScalarQuantColumn < Double > & | dishDiameterQuant () const |
const ROScalarColumn< Bool > & | flagRow () const |
const ROScalarColumn< String > & | mount () const |
const ROScalarColumn< String > & | name () const |
const ROArrayColumn< Double > & | offset () const |
const ROArrayQuantColumn < Double > & | offsetQuant () const |
const ROScalarMeasColumn < MPosition > & | offsetMeas () const |
const ROArrayColumn< Double > & | position () const |
const ROArrayQuantColumn < Double > & | positionQuant () const |
const ROScalarMeasColumn < MPosition > & | positionMeas () const |
const ROScalarColumn< String > & | station () const |
const ROScalarColumn< String > & | type () const |
const ROArrayColumn< Double > & | meanOrbit () const |
Access to optional columns. More... | |
const ROScalarColumn< Int > & | orbitId () const |
const ROScalarColumn< Int > & | phasedArrayId () const |
uInt | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Int | matchAntenna (const MPosition &antennaPos, const Quantum< Double > &tolerance, Int tryRow=-1) |
returns the last row that contains an antenna at the specified position, to within the specified tolerance. More... | |
Int | matchAntenna (const String &antName, const MPosition &antennaPos, const Quantum< Double > &tolerance, Int tryRow=-1) |
Same as the previous function except that the antenna name must also match. More... | |
Int | matchAntennaAndStation (const String &antName, const String &stationName, const MPosition &antennaPos, const Quantum< Double > &tolerance, Int tryRow=-1) |
Same as the previous function except that the station name must also match. More... | |
Protected Member Functions | |
ROMSAntennaColumns () | |
void | attach (const MSAntenna &msAntenna) |
Private Member Functions | |
ROMSAntennaColumns (const ROMSAntennaColumns &) | |
ROMSAntennaColumns & | operator= (const ROMSAntennaColumns &) |
void | attachOptionalCols (const MSAntenna &msAntenna) |
Bool | matchName (uInt row, const String &antName) const |
Bool | matchStation (uInt row, const String &stationName) const |
Bool | matchPosition (uInt row, const Vector< Double > &antPosInM, const Double tolInM) const |
A class to provide easy read-only access to MSAntenna columns.
Public interface
ROMSAntennaColumns stands for Read-Only MeasurementSet Antenna Table columns.
This class provides read-only access to the columns in the MSAntenna 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 ROMSColumns for an example.
See MSColumns for the motivation.
Definition at line 78 of file MSAntennaColumns.h.
casacore::ROMSAntennaColumns::ROMSAntennaColumns | ( | const MSAntenna & | msAntenna | ) |
Create a columns object that accesses the data in the specified Table.
casacore::ROMSAntennaColumns::~ROMSAntennaColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
|
protected |
|
private |
|
inline |
Access to columns.
Definition at line 90 of file MSAntennaColumns.h.
References dishDiameter_p.
Referenced by casacore::MSAntennaColumns::dishDiameter().
|
inline |
Definition at line 91 of file MSAntennaColumns.h.
References dishDiameterQuant_p.
Referenced by casacore::MSAntennaColumns::dishDiameterQuant().
|
inline |
Definition at line 93 of file MSAntennaColumns.h.
References flagRow_p.
Referenced by casacore::MSAntennaColumns::flagRow().
Int casacore::ROMSAntennaColumns::matchAntenna | ( | const MPosition & | antennaPos, |
const Quantum< Double > & | tolerance, | ||
Int | tryRow = -1 |
||
) |
returns the last row that contains an antenna at the specified position, to within the specified tolerance.
The reference frame of the supplied position must be the same as the one for the POSITION columns. If not an AipsError is thrown as such an argument will never match any row of the Table. The tolerance is the maximum allowed distance between the two positions and the supplied Quantum must have dimensions of length. This is checked when compiled in debug mode and an AipsError exception is thrown if the dimensions are wrong. Returns -1 if no match could be found. Flaged rows can never match. If tryRow is non-negative, then that row is tested to see if it matches before any others are tested. Setting tryRow to a positive value greater than the table length will throw an exception (AipsError), when compiled in debug mode.
Int casacore::ROMSAntennaColumns::matchAntenna | ( | const String & | antName, |
const MPosition & | antennaPos, | ||
const Quantum< Double > & | tolerance, | ||
Int | tryRow = -1 |
||
) |
Same as the previous function except that the antenna name must also match.
Int casacore::ROMSAntennaColumns::matchAntennaAndStation | ( | const String & | antName, |
const String & | stationName, | ||
const MPosition & | antennaPos, | ||
const Quantum< Double > & | tolerance, | ||
Int | tryRow = -1 |
||
) |
Same as the previous function except that the station name must also match.
|
private |
|
private |
|
inline |
Access to optional columns.
Definition at line 111 of file MSAntennaColumns.h.
References meanOrbit_p.
Referenced by casacore::MSAntennaColumns::meanOrbit().
|
inline |
Definition at line 94 of file MSAntennaColumns.h.
References mount_p.
Referenced by casacore::MSAntennaColumns::mount().
|
inline |
Definition at line 95 of file MSAntennaColumns.h.
References name_p.
Referenced by casacore::MSAntennaColumns::name().
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 117 of file MSAntennaColumns.h.
References dishDiameter_p.
Referenced by casa::sdfiller::AntennaRecord::fill().
|
inline |
Definition at line 96 of file MSAntennaColumns.h.
References offset_p.
Referenced by casacore::MSAntennaColumns::offset().
|
inline |
Definition at line 98 of file MSAntennaColumns.h.
References offsetMeas_p.
Referenced by casacore::MSAntennaColumns::offsetMeas().
|
inline |
Definition at line 97 of file MSAntennaColumns.h.
References offsetQuant_p.
Referenced by casacore::MSAntennaColumns::offsetQuant().
|
private |
|
inline |
Definition at line 112 of file MSAntennaColumns.h.
References orbitId_p.
Referenced by casacore::MSAntennaColumns::orbitId().
|
inline |
Definition at line 113 of file MSAntennaColumns.h.
References phasedArrayId_p.
Referenced by casacore::MSAntennaColumns::phasedArrayId().
|
inline |
Definition at line 100 of file MSAntennaColumns.h.
References position_p.
Referenced by casacore::MSAntennaColumns::position().
|
inline |
Definition at line 103 of file MSAntennaColumns.h.
References positionMeas_p.
Referenced by casacore::MSAntennaColumns::positionMeas().
|
inline |
Definition at line 101 of file MSAntennaColumns.h.
References positionQuant_p.
Referenced by casacore::MSAntennaColumns::positionQuant().
|
inline |
Definition at line 105 of file MSAntennaColumns.h.
References station_p.
Referenced by casacore::MSAntennaColumns::station().
|
inline |
Definition at line 106 of file MSAntennaColumns.h.
References type_p.
Referenced by casacore::MSAntennaColumns::type().
|
private |
Definition at line 171 of file MSAntennaColumns.h.
Referenced by dishDiameter(), and nrow().
|
private |
Definition at line 189 of file MSAntennaColumns.h.
Referenced by dishDiameterQuant().
|
private |
Definition at line 172 of file MSAntennaColumns.h.
Referenced by flagRow().
|
private |
Definition at line 180 of file MSAntennaColumns.h.
Referenced by meanOrbit().
|
private |
Definition at line 173 of file MSAntennaColumns.h.
Referenced by mount().
|
private |
Definition at line 174 of file MSAntennaColumns.h.
Referenced by name().
|
private |
Definition at line 175 of file MSAntennaColumns.h.
Referenced by offset().
|
private |
Definition at line 185 of file MSAntennaColumns.h.
Referenced by offsetMeas().
|
private |
Definition at line 190 of file MSAntennaColumns.h.
Referenced by offsetQuant().
|
private |
Definition at line 181 of file MSAntennaColumns.h.
Referenced by orbitId().
|
private |
Definition at line 182 of file MSAntennaColumns.h.
Referenced by phasedArrayId().
|
private |
Definition at line 176 of file MSAntennaColumns.h.
Referenced by position().
|
private |
Definition at line 186 of file MSAntennaColumns.h.
Referenced by positionMeas().
|
private |
Definition at line 191 of file MSAntennaColumns.h.
Referenced by positionQuant().
|
private |
Definition at line 177 of file MSAntennaColumns.h.
Referenced by station().
|
private |
Definition at line 178 of file MSAntennaColumns.h.
Referenced by type().