casacore
|
A class for easy access to MeasurementSet main table columns. More...
#include <MSMainColumns.h>
Protected Member Functions | |
MSMainColumns () | |
void | attach (const MeasurementSet &ms) |
Private Member Functions | |
MSMainColumns (const MSMainColumns &) | |
MSMainColumns & | operator= (const MSMainColumns &) |
void | attachOptionalCols (const MeasurementSet &ms) |
A class for easy access to MeasurementSet main table columns.
Public interface
MSMainColumns stands for MeasurementSet main Table columns.
This class provides access to the columns in the MeasurementSet. 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.
Warning: The Table that is used to construct this class must not be destroyed (or go out of scope) before this class does; Otherwise the scalar and array columns use by this class will be left dangling;
Having to type long lists of Scalar and Array column declarations gets very tedious. This class attempts to relieve some of that tedium, while at the same time concentrating all the declarations in one place, making Type errors in the column declaration (only caught at run-time) less probable. Type errors in the use of the columns is caught at compile time.
Definition at line 105 of file MSMainColumns.h.
casacore::MSMainColumns::MSMainColumns | ( | const MeasurementSet & | ms | ) |
Create a columns object that accesses the data in the specified Table.
casacore::MSMainColumns::~MSMainColumns | ( | ) |
The desctructor does nothing special.
|
protected |
|
private |
|
inline |
|
inline |
Const access to required columns.
Definition at line 186 of file MSMainColumns.h.
References antenna1_p.
|
inline |
Definition at line 118 of file MSMainColumns.h.
References antenna2_p.
|
inline |
Definition at line 187 of file MSMainColumns.h.
References antenna2_p.
|
inline |
|
inline |
|
inline |
Definition at line 119 of file MSMainColumns.h.
References arrayId_p.
|
inline |
Definition at line 188 of file MSMainColumns.h.
References arrayId_p.
|
protected |
|
private |
|
inline |
Definition at line 159 of file MSMainColumns.h.
References baselineRef_p.
|
inline |
Definition at line 228 of file MSMainColumns.h.
References baselineRef_p.
|
inline |
Definition at line 160 of file MSMainColumns.h.
References correctedData_p.
|
inline |
Definition at line 229 of file MSMainColumns.h.
References correctedData_p.
|
inline |
Definition at line 161 of file MSMainColumns.h.
References data_p.
|
inline |
Definition at line 230 of file MSMainColumns.h.
References data_p.
|
inline |
Definition at line 120 of file MSMainColumns.h.
References dataDescId_p.
|
inline |
Definition at line 189 of file MSMainColumns.h.
References dataDescId_p.
|
inline |
Definition at line 121 of file MSMainColumns.h.
References exposure_p.
|
inline |
Definition at line 190 of file MSMainColumns.h.
References exposure_p.
|
inline |
Definition at line 122 of file MSMainColumns.h.
References exposureQuant_p.
Referenced by casacore::MSMainColInterface::exposureQuant().
|
inline |
Definition at line 191 of file MSMainColumns.h.
References exposureQuant_p.
|
inline |
Definition at line 124 of file MSMainColumns.h.
References feed1_p.
|
inline |
Definition at line 193 of file MSMainColumns.h.
References feed1_p.
|
inline |
Definition at line 125 of file MSMainColumns.h.
References feed2_p.
|
inline |
Definition at line 194 of file MSMainColumns.h.
References feed2_p.
|
inline |
Definition at line 162 of file MSMainColumns.h.
References feed3_p.
|
inline |
Definition at line 231 of file MSMainColumns.h.
References feed3_p.
|
inline |
Definition at line 126 of file MSMainColumns.h.
References fieldId_p.
|
inline |
Definition at line 195 of file MSMainColumns.h.
References fieldId_p.
|
inline |
Definition at line 127 of file MSMainColumns.h.
References flag_p.
Referenced by casacore::MSMainColInterface::flag().
|
inline |
Definition at line 196 of file MSMainColumns.h.
References flag_p.
Returns the category labels for the FLAG_CATEGORY column.
|
inline |
Definition at line 128 of file MSMainColumns.h.
References flagCategory_p.
|
inline |
Definition at line 197 of file MSMainColumns.h.
References flagCategory_p.
|
inline |
Definition at line 129 of file MSMainColumns.h.
References flagRow_p.
Referenced by casacore::MSMainColInterface::flagRow().
|
inline |
Definition at line 198 of file MSMainColumns.h.
References flagRow_p.
|
inline |
Definition at line 163 of file MSMainColumns.h.
References floatData_p.
|
inline |
Definition at line 232 of file MSMainColumns.h.
References floatData_p.
|
inline |
Definition at line 164 of file MSMainColumns.h.
References imagingWeight_p.
|
inline |
Definition at line 233 of file MSMainColumns.h.
References imagingWeight_p.
|
inline |
Definition at line 130 of file MSMainColumns.h.
References interval_p.
|
inline |
Definition at line 199 of file MSMainColumns.h.
References interval_p.
|
inline |
Definition at line 131 of file MSMainColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 200 of file MSMainColumns.h.
References intervalQuant_p.
|
inline |
Definition at line 165 of file MSMainColumns.h.
References lagData_p.
|
inline |
Definition at line 234 of file MSMainColumns.h.
References lagData_p.
|
inline |
Definition at line 166 of file MSMainColumns.h.
References modelData_p.
|
inline |
Definition at line 235 of file MSMainColumns.h.
References modelData_p.
|
inline |
Convenience function that returns the number of rows in any of the columns.
Definition at line 254 of file MSMainColumns.h.
References antenna1_p, and casacore::TableColumn::nrow().
|
inline |
Definition at line 133 of file MSMainColumns.h.
References observationId_p.
|
inline |
Definition at line 202 of file MSMainColumns.h.
References observationId_p.
|
private |
|
inline |
Definition at line 167 of file MSMainColumns.h.
References phaseId_p.
|
inline |
Definition at line 236 of file MSMainColumns.h.
References phaseId_p.
|
inline |
Definition at line 134 of file MSMainColumns.h.
References processorId_p.
|
inline |
Definition at line 203 of file MSMainColumns.h.
References processorId_p.
|
inline |
Definition at line 168 of file MSMainColumns.h.
References pulsarBin_p.
|
inline |
Definition at line 237 of file MSMainColumns.h.
References pulsarBin_p.
|
inline |
Definition at line 169 of file MSMainColumns.h.
References pulsarGateId_p.
|
inline |
Definition at line 238 of file MSMainColumns.h.
References pulsarGateId_p.
|
inline |
Definition at line 135 of file MSMainColumns.h.
References scanNumber_p.
|
inline |
Definition at line 204 of file MSMainColumns.h.
References scanNumber_p.
void casacore::MSMainColumns::setEpochRef | ( | MEpoch::Types | ref, |
Bool | tableMustBeEmpty = True |
||
) |
set the epoch type for the TIME and TIME_CENTROID columns.
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;
Set the flag category labels to the supplied values (in the CATEGORY keyword of the FLAG_CATEGORY column).
Throws an exception, when compiled in Debug mode, if the length of the supplied Vector is not the same as the length of the third dimension of the FLAG_CATEGORY column.
void casacore::MSMainColumns::setUVWRef | ( | Muvw::Types | ref | ) |
set the UVW reference type for the UVW and UVW2 (if defined) columns.
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 136 of file MSMainColumns.h.
References sigma_p.
|
inline |
Definition at line 205 of file MSMainColumns.h.
References sigma_p.
|
inline |
Definition at line 170 of file MSMainColumns.h.
References sigmaSpectrum_p.
|
inline |
Definition at line 239 of file MSMainColumns.h.
References sigmaSpectrum_p.
|
inline |
Definition at line 137 of file MSMainColumns.h.
References stateId_p.
|
inline |
Definition at line 206 of file MSMainColumns.h.
References stateId_p.
|
inline |
Definition at line 138 of file MSMainColumns.h.
References time_p.
|
inline |
Definition at line 207 of file MSMainColumns.h.
References time_p.
|
inline |
Definition at line 143 of file MSMainColumns.h.
References timeCentroid_p.
|
inline |
Definition at line 212 of file MSMainColumns.h.
References timeCentroid_p.
|
inline |
Definition at line 146 of file MSMainColumns.h.
References timeCentroidMeas_p.
|
inline |
Definition at line 215 of file MSMainColumns.h.
References timeCentroidMeas_p.
|
inline |
Definition at line 144 of file MSMainColumns.h.
References timeCentroidQuant_p.
|
inline |
Definition at line 213 of file MSMainColumns.h.
References timeCentroidQuant_p.
|
inline |
Definition at line 171 of file MSMainColumns.h.
References timeExtraPrec_p.
|
inline |
Definition at line 240 of file MSMainColumns.h.
References timeExtraPrec_p.
|
inline |
Definition at line 172 of file MSMainColumns.h.
References timeExtraPrecQuant_p.
|
inline |
Definition at line 241 of file MSMainColumns.h.
References timeExtraPrecQuant_p.
|
inline |
Definition at line 141 of file MSMainColumns.h.
References timeMeas_p.
|
inline |
Definition at line 210 of file MSMainColumns.h.
References timeMeas_p.
|
inline |
Definition at line 139 of file MSMainColumns.h.
References timeQuant_p.
Referenced by casacore::MSMainColInterface::timeQuant().
|
inline |
Definition at line 208 of file MSMainColumns.h.
References timeQuant_p.
|
inline |
Definition at line 148 of file MSMainColumns.h.
References uvw_p.
|
inline |
Definition at line 217 of file MSMainColumns.h.
References uvw_p.
|
inline |
Definition at line 174 of file MSMainColumns.h.
References uvw2_p.
|
inline |
Definition at line 243 of file MSMainColumns.h.
References uvw2_p.
|
inline |
Definition at line 175 of file MSMainColumns.h.
References uvw2Meas_p.
|
inline |
Definition at line 244 of file MSMainColumns.h.
References uvw2Meas_p.
|
inline |
Definition at line 177 of file MSMainColumns.h.
References uvw2Quant_p.
|
inline |
Definition at line 246 of file MSMainColumns.h.
References uvw2Quant_p.
|
inline |
Definition at line 151 of file MSMainColumns.h.
References uvwMeas_p.
|
inline |
Definition at line 220 of file MSMainColumns.h.
References uvwMeas_p.
|
inline |
Definition at line 149 of file MSMainColumns.h.
References uvwQuant_p.
|
inline |
Definition at line 218 of file MSMainColumns.h.
References uvwQuant_p.
|
inline |
Definition at line 179 of file MSMainColumns.h.
References videoPoint_p.
|
inline |
Definition at line 248 of file MSMainColumns.h.
References videoPoint_p.
|
inline |
Definition at line 153 of file MSMainColumns.h.
References weight_p.
|
inline |
Definition at line 222 of file MSMainColumns.h.
References weight_p.
|
inline |
Definition at line 180 of file MSMainColumns.h.
References weightSpectrum_p.
|
inline |
Definition at line 249 of file MSMainColumns.h.
References weightSpectrum_p.
|
inline |
Definition at line 181 of file MSMainColumns.h.
References weightSpectrumCorrected_p.
|
inline |
Definition at line 250 of file MSMainColumns.h.
References weightSpectrumCorrected_p.
|
private |
Definition at line 299 of file MSMainColumns.h.
Referenced by antenna1(), and nrow().
|
private |
Definition at line 300 of file MSMainColumns.h.
Referenced by antenna2().
|
private |
Definition at line 321 of file MSMainColumns.h.
Referenced by antenna3().
|
private |
Definition at line 301 of file MSMainColumns.h.
Referenced by arrayId().
|
private |
Definition at line 322 of file MSMainColumns.h.
Referenced by baselineRef().
|
private |
Definition at line 338 of file MSMainColumns.h.
Referenced by correctedData().
|
private |
Definition at line 323 of file MSMainColumns.h.
Referenced by data().
|
private |
Definition at line 302 of file MSMainColumns.h.
Referenced by dataDescId().
|
private |
Definition at line 303 of file MSMainColumns.h.
Referenced by exposure().
|
private |
Definition at line 350 of file MSMainColumns.h.
Referenced by exposureQuant().
|
private |
Definition at line 304 of file MSMainColumns.h.
Referenced by feed1().
|
private |
Definition at line 305 of file MSMainColumns.h.
Referenced by feed2().
|
private |
Definition at line 324 of file MSMainColumns.h.
Referenced by feed3().
|
private |
Definition at line 306 of file MSMainColumns.h.
Referenced by fieldId().
|
private |
Definition at line 307 of file MSMainColumns.h.
Referenced by flag().
|
private |
Definition at line 308 of file MSMainColumns.h.
Referenced by flagCategory().
|
private |
Definition at line 309 of file MSMainColumns.h.
Referenced by flagRow().
|
private |
Definition at line 325 of file MSMainColumns.h.
Referenced by floatData().
|
private |
Definition at line 339 of file MSMainColumns.h.
Referenced by imagingWeight().
|
private |
Definition at line 310 of file MSMainColumns.h.
Referenced by interval().
|
private |
Definition at line 351 of file MSMainColumns.h.
Referenced by intervalQuant().
|
private |
Definition at line 326 of file MSMainColumns.h.
Referenced by lagData().
|
private |
Definition at line 340 of file MSMainColumns.h.
Referenced by modelData().
|
private |
Definition at line 311 of file MSMainColumns.h.
Referenced by observationId().
|
private |
Definition at line 327 of file MSMainColumns.h.
Referenced by phaseId().
|
private |
Definition at line 312 of file MSMainColumns.h.
Referenced by processorId().
|
private |
Definition at line 328 of file MSMainColumns.h.
Referenced by pulsarBin().
|
private |
Definition at line 329 of file MSMainColumns.h.
Referenced by pulsarGateId().
|
private |
Definition at line 313 of file MSMainColumns.h.
Referenced by scanNumber().
|
private |
Definition at line 314 of file MSMainColumns.h.
Referenced by sigma().
|
private |
Definition at line 330 of file MSMainColumns.h.
Referenced by sigmaSpectrum().
|
private |
Definition at line 315 of file MSMainColumns.h.
Referenced by stateId().
|
private |
Definition at line 316 of file MSMainColumns.h.
Referenced by time().
|
private |
Definition at line 317 of file MSMainColumns.h.
Referenced by timeCentroid().
|
private |
Definition at line 344 of file MSMainColumns.h.
Referenced by timeCentroidMeas().
|
private |
Definition at line 353 of file MSMainColumns.h.
Referenced by timeCentroidQuant().
|
private |
Definition at line 331 of file MSMainColumns.h.
Referenced by timeExtraPrec().
|
private |
Definition at line 356 of file MSMainColumns.h.
Referenced by timeExtraPrecQuant().
|
private |
Definition at line 343 of file MSMainColumns.h.
Referenced by timeMeas().
|
private |
Definition at line 352 of file MSMainColumns.h.
Referenced by timeQuant().
|
private |
Definition at line 332 of file MSMainColumns.h.
Referenced by uvw2().
|
private |
Definition at line 347 of file MSMainColumns.h.
Referenced by uvw2Meas().
|
private |
Definition at line 357 of file MSMainColumns.h.
Referenced by uvw2Quant().
|
private |
Definition at line 318 of file MSMainColumns.h.
Referenced by uvw().
|
private |
Definition at line 345 of file MSMainColumns.h.
Referenced by uvwMeas().
|
private |
Definition at line 354 of file MSMainColumns.h.
Referenced by uvwQuant().
|
private |
Definition at line 333 of file MSMainColumns.h.
Referenced by videoPoint().
|
private |
Definition at line 319 of file MSMainColumns.h.
Referenced by weight().
|
private |
Definition at line 334 of file MSMainColumns.h.
Referenced by weightSpectrum().
|
private |
Definition at line 335 of file MSMainColumns.h.
Referenced by weightSpectrumCorrected().