casa
5.7.0-16
|
A class to provide easy read-only access to MSFeed columns. More...
#include <MSFeedColumns.h>
Public Member Functions | |
ROMSFeedColumns (const MSFeed &msFeed) | |
Create a columns object that accesses the data in the specified Table. More... | |
~ROMSFeedColumns () | |
The destructor does nothing special. More... | |
const ROScalarColumn< Int > & | antennaId () const |
Access to required columns. More... | |
const ROScalarColumn< Int > & | beamId () const |
const ROArrayColumn< Double > & | beamOffset () const |
const ROArrayQuantColumn < Double > & | beamOffsetQuant () const |
const ROArrayMeasColumn < MDirection > & | beamOffsetMeas () const |
const ROScalarColumn< Int > & | feedId () const |
const ROScalarColumn< Double > & | interval () const |
const ROScalarQuantColumn < Double > & | intervalQuant () const |
const ROScalarColumn< Int > & | numReceptors () const |
const ROArrayColumn< Complex > & | polResponse () const |
const ROArrayColumn< String > & | polarizationType () const |
const ROArrayColumn< Double > & | position () const |
const ROArrayQuantColumn < Double > & | positionQuant () const |
const ROScalarMeasColumn < MPosition > & | positionMeas () const |
const ROArrayColumn< Double > & | receptorAngle () const |
const ROArrayQuantColumn < Double > & | receptorAngleQuant () const |
const ROScalarColumn< Int > & | spectralWindowId () const |
const ROScalarColumn< Double > & | time () const |
const ROScalarQuantColumn < Double > & | timeQuant () const |
const ROScalarMeasColumn < MEpoch > & | timeMeas () const |
const ROScalarColumn< Double > & | focusLength () const |
Access to optional columns. More... | |
const ROScalarQuantColumn < Double > & | focusLengthQuant () const |
const ROScalarColumn< Int > & | phasedFeedId () const |
uInt | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Int | matchFeed (Quantum< Double > &newTimeQ, Quantum< Double > &newIntervalQ, const Int &antId, const Int &fId, const Int &spwId, const Quantum< Double > &timeQ, const Quantum< Double > &intervalQ, const Int &numRec, const Array< Quantum< Double > > &beamOffsetQ, const Array< String > &polType, const Array< Complex > &polResp, const Array< Quantum< Double > > &positionQ, const Array< Quantum< Double > > &receptorAngleQ, const Vector< uInt > &ignoreRows, const Quantum< Double > &focusLengthQ=Quantum< Double >()) |
Returns the last row that contains a feed with the specified values. More... | |
Protected Member Functions | |
ROMSFeedColumns () | |
void | attach (const MSFeed &msFeed) |
Private Member Functions | |
ROMSFeedColumns (const ROMSFeedColumns &) | |
ROMSFeedColumns & | operator= (const ROMSFeedColumns &) |
void | attachOptionalCols (const MSFeed &msFeed) |
A class to provide easy read-only access to MSFeed columns.
Public interface
ROMSFeedColumns stands for Read-Only MeasurementSet Feed Table columns.
This class provides read-only access to the columns in the MSFeed 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 84 of file MSFeedColumns.h.
casacore::ROMSFeedColumns::ROMSFeedColumns | ( | const MSFeed & | msFeed | ) |
Create a columns object that accesses the data in the specified Table.
casacore::ROMSFeedColumns::~ROMSFeedColumns | ( | ) |
The destructor does nothing special.
|
protected |
|
private |
|
inline |
Access to required columns.
Definition at line 95 of file MSFeedColumns.h.
References antennaId_p.
Referenced by casacore::MSFeedColumns::antennaId().
|
protected |
|
private |
|
inline |
Definition at line 96 of file MSFeedColumns.h.
References beamId_p.
Referenced by casacore::MSFeedColumns::beamId().
|
inline |
Definition at line 97 of file MSFeedColumns.h.
References beamOffset_p.
Referenced by casacore::MSFeedColumns::beamOffset().
|
inline |
Definition at line 100 of file MSFeedColumns.h.
References beamOffsetMeas_p.
Referenced by casacore::MSFeedColumns::beamOffsetMeas().
|
inline |
Definition at line 98 of file MSFeedColumns.h.
References beamOffsetQuant_p.
Referenced by casacore::MSFeedColumns::beamOffsetQuant().
|
inline |
Definition at line 102 of file MSFeedColumns.h.
References feedId_p.
Referenced by casacore::MSFeedColumns::feedId().
|
inline |
Access to optional columns.
Definition at line 128 of file MSFeedColumns.h.
References focusLength_p.
Referenced by casacore::MSFeedColumns::focusLength().
|
inline |
Definition at line 129 of file MSFeedColumns.h.
References focusLengthQuant_p.
Referenced by casacore::MSFeedColumns::focusLengthQuant().
|
inline |
Definition at line 103 of file MSFeedColumns.h.
References interval_p.
Referenced by casacore::MSFeedColumns::interval().
|
inline |
Definition at line 104 of file MSFeedColumns.h.
References intervalQuant_p.
Referenced by casacore::MSFeedColumns::intervalQuant().
Int casacore::ROMSFeedColumns::matchFeed | ( | Quantum< Double > & | newTimeQ, |
Quantum< Double > & | newIntervalQ, | ||
const Int & | antId, | ||
const Int & | fId, | ||
const Int & | spwId, | ||
const Quantum< Double > & | timeQ, | ||
const Quantum< Double > & | intervalQ, | ||
const Int & | numRec, | ||
const Array< Quantum< Double > > & | beamOffsetQ, | ||
const Array< String > & | polType, | ||
const Array< Complex > & | polResp, | ||
const Array< Quantum< Double > > & | positionQ, | ||
const Array< Quantum< Double > > & | receptorAngleQ, | ||
const Vector< uInt > & | ignoreRows, | ||
const Quantum< Double > & | focusLengthQ = Quantum< Double >() |
||
) |
Returns the last row that contains a feed with the specified values.
If no matching row can be found, but a match is possible if the validity time interval is widened, return that row and the suggestion for the new time information. If no change to time is necessary, newTimeQ and newIntervalQ are zero. Returns -1 if no match could be found. Ignore the Feed table rows contained in vector ignoreRows. focusLengthQ is only compared if this optional column is present and if the value of focusLengthQ is not dimensionless.
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 135 of file MSFeedColumns.h.
References antennaId_p.
|
inline |
Definition at line 106 of file MSFeedColumns.h.
References numReceptors_p.
Referenced by casacore::MSFeedColumns::numReceptors().
|
private |
|
inline |
Definition at line 131 of file MSFeedColumns.h.
References phasedFeedId_p.
Referenced by casacore::MSFeedColumns::phasedFeedId().
|
inline |
Definition at line 108 of file MSFeedColumns.h.
References polarizationType_p.
Referenced by casacore::MSFeedColumns::polarizationType().
|
inline |
Definition at line 107 of file MSFeedColumns.h.
References polResponse_p.
Referenced by casacore::MSFeedColumns::polResponse().
|
inline |
Definition at line 110 of file MSFeedColumns.h.
References position_p.
Referenced by casacore::MSFeedColumns::position().
|
inline |
Definition at line 113 of file MSFeedColumns.h.
References positionMeas_p.
Referenced by casacore::MSFeedColumns::positionMeas().
|
inline |
Definition at line 111 of file MSFeedColumns.h.
References positionQuant_p.
Referenced by casacore::MSFeedColumns::positionQuant().
|
inline |
Definition at line 115 of file MSFeedColumns.h.
References receptorAngle_p.
Referenced by casacore::MSFeedColumns::receptorAngle().
|
inline |
Definition at line 116 of file MSFeedColumns.h.
References receptorAngleQuant_p.
Referenced by casacore::MSFeedColumns::receptorAngleQuant().
|
inline |
Definition at line 118 of file MSFeedColumns.h.
References spectralWindowId_p.
Referenced by casacore::MSFeedColumns::spectralWindowId().
|
inline |
Definition at line 120 of file MSFeedColumns.h.
References time_p.
Referenced by casacore::MSFeedColumns::time().
|
inline |
Definition at line 123 of file MSFeedColumns.h.
References timeMeas_p.
Referenced by casacore::MSFeedColumns::timeMeas().
|
inline |
Definition at line 121 of file MSFeedColumns.h.
References timeQuant_p.
Referenced by casacore::MSFeedColumns::timeQuant().
|
private |
Definition at line 181 of file MSFeedColumns.h.
Referenced by antennaId(), and nrow().
|
private |
Definition at line 182 of file MSFeedColumns.h.
Referenced by beamId().
|
private |
Definition at line 183 of file MSFeedColumns.h.
Referenced by beamOffset().
|
private |
Access to Measure columns.
Definition at line 198 of file MSFeedColumns.h.
Referenced by beamOffsetMeas().
|
private |
Access to Quantum columns.
Definition at line 203 of file MSFeedColumns.h.
Referenced by beamOffsetQuant().
|
private |
Definition at line 184 of file MSFeedColumns.h.
Referenced by feedId().
|
private |
Definition at line 194 of file MSFeedColumns.h.
Referenced by focusLength().
|
private |
Definition at line 209 of file MSFeedColumns.h.
Referenced by focusLengthQuant().
|
private |
Definition at line 185 of file MSFeedColumns.h.
Referenced by interval().
|
private |
Definition at line 204 of file MSFeedColumns.h.
Referenced by intervalQuant().
|
private |
Definition at line 186 of file MSFeedColumns.h.
Referenced by numReceptors().
|
private |
Definition at line 195 of file MSFeedColumns.h.
Referenced by phasedFeedId().
|
private |
Definition at line 188 of file MSFeedColumns.h.
Referenced by polarizationType().
|
private |
Definition at line 187 of file MSFeedColumns.h.
Referenced by polResponse().
|
private |
Definition at line 189 of file MSFeedColumns.h.
Referenced by position().
|
private |
Definition at line 199 of file MSFeedColumns.h.
Referenced by positionMeas().
|
private |
Definition at line 205 of file MSFeedColumns.h.
Referenced by positionQuant().
|
private |
Definition at line 190 of file MSFeedColumns.h.
Referenced by receptorAngle().
|
private |
Definition at line 206 of file MSFeedColumns.h.
Referenced by receptorAngleQuant().
|
private |
Definition at line 191 of file MSFeedColumns.h.
Referenced by spectralWindowId().
|
private |
Definition at line 192 of file MSFeedColumns.h.
Referenced by time().
|
private |
Definition at line 200 of file MSFeedColumns.h.
Referenced by timeMeas().
|
private |
Definition at line 207 of file MSFeedColumns.h.
Referenced by timeQuant().