casacore
|
A class to provide easy access to MSFeed columns. More...
#include <MSFeedColumns.h>
Protected Member Functions | |
MSFeedColumns () | |
void | attach (const MSFeed &msFeed) |
Private Member Functions | |
MSFeedColumns (const MSFeedColumns &) | |
MSFeedColumns & | operator= (const MSFeedColumns &) |
void | attachOptionalCols (const MSFeed &msFeed) |
A class to provide easy access to MSFeed columns.
Public interface
MSFeedColumns stands for MeasurementSet Feed Table columns.
This class provides 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 MSColumns for an example.
See MSColumns for the motivation.
Definition at line 84 of file MSFeedColumns.h.
casacore::MSFeedColumns::MSFeedColumns | ( | const MSFeed & | msFeed | ) |
Create a columns object that accesses the data in the specified Table.
casacore::MSFeedColumns::~MSFeedColumns | ( | ) |
The desctructor does nothing special.
|
protected |
|
private |
|
inline |
|
inline |
Const access to required columns.
Definition at line 122 of file MSFeedColumns.h.
References antennaId_p.
|
protected |
|
private |
|
inline |
Definition at line 96 of file MSFeedColumns.h.
References beamId_p.
|
inline |
Definition at line 123 of file MSFeedColumns.h.
References beamId_p.
|
inline |
Definition at line 97 of file MSFeedColumns.h.
References beamOffset_p.
|
inline |
Definition at line 124 of file MSFeedColumns.h.
References beamOffset_p.
|
inline |
Definition at line 99 of file MSFeedColumns.h.
References beamOffsetMeas_p.
|
inline |
Definition at line 126 of file MSFeedColumns.h.
References beamOffsetMeas_p.
|
inline |
Definition at line 98 of file MSFeedColumns.h.
References beamOffsetQuant_p.
|
inline |
Definition at line 125 of file MSFeedColumns.h.
References beamOffsetQuant_p.
|
inline |
Definition at line 101 of file MSFeedColumns.h.
References feedId_p.
|
inline |
Definition at line 128 of file MSFeedColumns.h.
References feedId_p.
|
inline |
Access to optional columns.
Definition at line 149 of file MSFeedColumns.h.
References focusLength_p.
|
inline |
Const access to optional columns.
Definition at line 156 of file MSFeedColumns.h.
References focusLength_p.
|
inline |
Definition at line 150 of file MSFeedColumns.h.
References focusLengthQuant_p.
|
inline |
Definition at line 157 of file MSFeedColumns.h.
References focusLengthQuant_p.
|
inline |
Definition at line 102 of file MSFeedColumns.h.
References interval_p.
|
inline |
Definition at line 129 of file MSFeedColumns.h.
References interval_p.
|
inline |
Definition at line 103 of file MSFeedColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 130 of file MSFeedColumns.h.
References intervalQuant_p.
Int64 casacore::MSFeedColumns::matchFeed | ( | Quantum< Double > & | newTimeQ, |
Quantum< Double > & | newIntervalQ, | ||
Int | antId, | ||
Int | feedId, | ||
Int | spwId, | ||
const Quantum< Double > & | timeQ, | ||
const Quantum< Double > & | intervalQ, | ||
Int | numReceptor, | ||
const Array< Quantum< Double > > & | beamOffsetQ, | ||
const Array< String > & | polType, | ||
const Array< Complex > & | polResp, | ||
const Array< Quantum< Double > > & | positionQ, | ||
const Array< Quantum< Double > > & | receptorAngleQ, | ||
const RowNumbers & | 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 183 of file MSFeedColumns.h.
References antennaId_p, and casacore::TableColumn::nrow().
|
inline |
Definition at line 104 of file MSFeedColumns.h.
References numReceptors_p.
|
inline |
Definition at line 131 of file MSFeedColumns.h.
References numReceptors_p.
|
private |
|
inline |
Definition at line 151 of file MSFeedColumns.h.
References phasedFeedId_p.
|
inline |
Definition at line 158 of file MSFeedColumns.h.
References phasedFeedId_p.
|
inline |
Definition at line 106 of file MSFeedColumns.h.
References polarizationType_p.
|
inline |
Definition at line 133 of file MSFeedColumns.h.
References polarizationType_p.
|
inline |
Definition at line 105 of file MSFeedColumns.h.
References polResponse_p.
|
inline |
Definition at line 132 of file MSFeedColumns.h.
References polResponse_p.
|
inline |
Definition at line 107 of file MSFeedColumns.h.
References position_p.
|
inline |
Definition at line 134 of file MSFeedColumns.h.
References position_p.
|
inline |
Definition at line 109 of file MSFeedColumns.h.
References positionMeas_p.
|
inline |
Definition at line 136 of file MSFeedColumns.h.
References positionMeas_p.
|
inline |
Definition at line 108 of file MSFeedColumns.h.
References positionQuant_p.
|
inline |
Definition at line 135 of file MSFeedColumns.h.
References positionQuant_p.
|
inline |
Definition at line 111 of file MSFeedColumns.h.
References receptorAngle_p.
|
inline |
Definition at line 138 of file MSFeedColumns.h.
References receptorAngle_p.
|
inline |
Definition at line 112 of file MSFeedColumns.h.
References receptorAngleQuant_p.
|
inline |
Definition at line 139 of file MSFeedColumns.h.
References receptorAngleQuant_p.
void casacore::MSFeedColumns::setDirectionRef | ( | MDirection::Types | ref | ) |
set the direction type for the BEAM_OFFSET column.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casacore::MSFeedColumns::setEpochRef | ( | MEpoch::Types | ref, |
Bool | tableMustBeEmpty = True |
||
) |
set the epoch type for the TIME 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;
void casacore::MSFeedColumns::setPositionRef | ( | MPosition::Types | ref | ) |
set the position type for the POSITION column.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
|
inline |
Definition at line 114 of file MSFeedColumns.h.
References spectralWindowId_p.
|
inline |
Definition at line 141 of file MSFeedColumns.h.
References spectralWindowId_p.
|
inline |
Definition at line 115 of file MSFeedColumns.h.
References time_p.
|
inline |
Definition at line 142 of file MSFeedColumns.h.
References time_p.
|
inline |
Definition at line 117 of file MSFeedColumns.h.
References timeMeas_p.
|
inline |
Definition at line 144 of file MSFeedColumns.h.
References timeMeas_p.
|
inline |
Definition at line 116 of file MSFeedColumns.h.
References timeQuant_p.
|
inline |
Definition at line 143 of file MSFeedColumns.h.
References timeQuant_p.
|
private |
Definition at line 229 of file MSFeedColumns.h.
Referenced by antennaId(), and nrow().
|
private |
Definition at line 230 of file MSFeedColumns.h.
Referenced by beamId().
|
private |
Definition at line 231 of file MSFeedColumns.h.
Referenced by beamOffset().
|
private |
Definition at line 246 of file MSFeedColumns.h.
Referenced by beamOffsetMeas().
|
private |
Definition at line 251 of file MSFeedColumns.h.
Referenced by beamOffsetQuant().
|
private |
Definition at line 232 of file MSFeedColumns.h.
Referenced by feedId().
|
private |
Definition at line 242 of file MSFeedColumns.h.
Referenced by focusLength().
|
private |
Definition at line 257 of file MSFeedColumns.h.
Referenced by focusLengthQuant().
|
private |
Definition at line 233 of file MSFeedColumns.h.
Referenced by interval().
|
private |
Definition at line 252 of file MSFeedColumns.h.
Referenced by intervalQuant().
|
private |
Definition at line 234 of file MSFeedColumns.h.
Referenced by numReceptors().
|
private |
Definition at line 243 of file MSFeedColumns.h.
Referenced by phasedFeedId().
|
private |
Definition at line 236 of file MSFeedColumns.h.
Referenced by polarizationType().
|
private |
Definition at line 235 of file MSFeedColumns.h.
Referenced by polResponse().
|
private |
Definition at line 237 of file MSFeedColumns.h.
Referenced by position().
|
private |
Definition at line 247 of file MSFeedColumns.h.
Referenced by positionMeas().
|
private |
Definition at line 253 of file MSFeedColumns.h.
Referenced by positionQuant().
|
private |
Definition at line 238 of file MSFeedColumns.h.
Referenced by receptorAngle().
|
private |
Definition at line 254 of file MSFeedColumns.h.
Referenced by receptorAngleQuant().
|
private |
Definition at line 239 of file MSFeedColumns.h.
Referenced by spectralWindowId().
|
private |
Definition at line 240 of file MSFeedColumns.h.
Referenced by time().
|
private |
Definition at line 248 of file MSFeedColumns.h.
Referenced by timeMeas().
|
private |
Definition at line 255 of file MSFeedColumns.h.
Referenced by timeQuant().