casacore
|
A class to provide easy read-write access to MSField columns. More...
#include <MSFieldColumns.h>
Public Member Functions | |
MSFieldColumns (MSField &msField) | |
Construct from the supplied Table. More... | |
~MSFieldColumns () | |
The desctructor does nothing special. More... | |
ScalarColumn< String > & | code () |
Read-write access to required columns. More... | |
ArrayColumn< Double > & | delayDir () |
ArrayMeasColumn< MDirection > & | delayDirMeasCol () |
ScalarColumn< Bool > & | flagRow () |
ScalarColumn< String > & | name () |
ScalarColumn< Int > & | numPoly () |
ArrayColumn< Double > & | phaseDir () |
ArrayMeasColumn< MDirection > & | phaseDirMeasCol () |
ArrayColumn< Double > & | referenceDir () |
ArrayMeasColumn< MDirection > & | referenceDirMeasCol () |
ScalarColumn< Int > & | sourceId () |
ScalarColumn< Double > & | time () |
ScalarQuantColumn< Double > & | timeQuant () |
ScalarMeasColumn< MEpoch > & | timeMeas () |
ScalarColumn< Int > & | ephemerisId () |
Read-write access to optional columns. More... | |
const ROScalarColumn< String > & | code () const |
Read-only access to required columns. More... | |
const ROArrayColumn< Double > & | delayDir () const |
const ROArrayMeasColumn< MDirection > & | delayDirMeasCol () const |
const ROScalarColumn< Bool > & | flagRow () const |
const ROScalarColumn< String > & | name () const |
const ROScalarColumn< Int > & | numPoly () const |
const ROArrayColumn< Double > & | phaseDir () const |
const ROArrayMeasColumn< MDirection > & | phaseDirMeasCol () const |
const ROArrayColumn< Double > & | referenceDir () const |
const ROArrayMeasColumn< MDirection > & | referenceDirMeasCol () const |
const ROScalarColumn< Int > & | sourceId () const |
const ROScalarColumn< Double > & | time () const |
const ROScalarQuantColumn< Double > & | timeQuant () const |
const ROScalarMeasColumn< MEpoch > & | timeMeas () const |
const ROScalarColumn< Int > & | ephemerisId () const |
Read-only access to optional columns. More... | |
void | setEpochRef (MEpoch::Types ref, Bool tableMustBeEmpty=True) |
set the epoch reference type for the TIME column. More... | |
void | setDirectionRef (MDirection::Types ref) |
set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns. More... | |
![]() | |
ROMSFieldColumns (const MSField &msField) | |
Construct from the supplied Table. More... | |
~ROMSFieldColumns () | |
The desctructor does nothing special. More... | |
const ROScalarColumn< String > & | code () const |
Read-only access to required columns. More... | |
const ROArrayColumn< Double > & | delayDir () const |
const ROArrayMeasColumn< MDirection > & | delayDirMeasCol () const |
const ROScalarColumn< Bool > & | flagRow () const |
const ROScalarColumn< String > & | name () const |
const ROScalarColumn< Int > & | numPoly () const |
const ROArrayColumn< Double > & | phaseDir () const |
const ROArrayMeasColumn< MDirection > & | phaseDirMeasCol () const |
const ROArrayColumn< Double > & | referenceDir () const |
const ROArrayMeasColumn< MDirection > & | referenceDirMeasCol () const |
const ROScalarColumn< Int > & | sourceId () const |
const ROScalarColumn< Double > & | time () const |
const ROScalarQuantColumn< Double > & | timeQuant () const |
const ROScalarMeasColumn< MEpoch > & | timeMeas () const |
const ROScalarColumn< Int > & | ephemerisId () const |
Read-only access to optional columns. More... | |
MDirection | delayDirMeas (Int row, Double time=0) const |
Access to interpolated directions from polynomials or ephemerides, the default time of zero will return the 0th order element of the polynomial. More... | |
MDirection | phaseDirMeas (Int row, Double time=0) const |
MDirection | referenceDirMeas (Int row, Double time=0) const |
MRadialVelocity | radVelMeas (Int row, Double time=0) const |
Quantity | rho (Int row, Double time=0) const |
Bool | needInterTime (Int row) const |
String | ephemPath (Int row) const |
uInt | nrow () const |
Convenience function that returns the number of rows in any of the columns. More... | |
Int | matchDirection (const MDirection &referenceDirection, const MDirection &delayDirection, const MDirection &phaseDirection, const Quantum< Double > &maxSeparation, Int tryRow=-1, Double time=0) |
returns the last row that has a reference direction, phase direction and delay direction that match, to within the specified angular separation, the supplied values. More... | |
void | updateMeasComets () |
Update the MeasComets objects belonging to this FIELD table. More... | |
Static Public Member Functions | |
static MDirection | interpolateDirMeas (const Array< MDirection > &arrDir, Int numPoly, Double interTime, Double timeOrigin) |
Interpolate the direction Measure polynomial. More... | |
Protected Member Functions | |
MSFieldColumns () | |
void | attach (MSField &msField) |
![]() | |
ROMSFieldColumns () | |
void | attach (const MSField &msField) |
Int | measCometIndex (int row) const |
MDirection | extractDirMeas (const MDirection &offsetDir, Int index, Double &interTime, MEpoch originEpoch) const |
Extract the direction Measure from the corresponding ephemeris using the nominal position as an offset. More... | |
void | getMJDs (Double &originMJD, Double &interMJD, const Double interTime, const MEpoch originEpoch) const |
Private Member Functions | |
MSFieldColumns (const MSFieldColumns &) | |
MSFieldColumns & | operator= (const MSFieldColumns &) |
void | attachOptionalCols (MSField &msField) |
Additional Inherited Members | |
![]() | |
String | measCometsPath_p |
Vector< MeasComet * > | measCometsV_p |
SimpleOrderedMap< Int, Int > | ephIdToMeasComet_p |
A class to provide easy read-write access to MSField columns.
Public interface
MSFieldColumns stands for MeasurementSet Field Table columns.
This class provides access to the columns in the MSField 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 275 of file MSFieldColumns.h.
casacore::MSFieldColumns::~MSFieldColumns | ( | ) |
The desctructor does nothing special.
|
protected |
|
private |
|
protected |
|
private |
|
inline |
Read-write 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. These functions are in the ROMSFieldColumns class.
Definition at line 291 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::code_p.
|
inline |
Read-only access to required columns.
Definition at line 317 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::code().
|
inline |
Definition at line 292 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::delayDir_p.
|
inline |
Definition at line 319 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::delayDir().
|
inline |
Definition at line 293 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::delayDirMeas_p.
|
inline |
Definition at line 321 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::delayDirMeasCol().
|
inline |
Read-write access to optional columns.
Definition at line 312 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::ephemerisId_p.
|
inline |
Read-only access to optional columns.
Definition at line 349 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::attach(), casacore::ROMSFieldColumns::attachOptionalCols(), casacore::ROMSFieldColumns::ephemerisId(), casacore::ROMSFieldColumns::numPoly(), casacore::ROMSFieldColumns::operator=(), and casacore::True.
|
inline |
Definition at line 295 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::flagRow_p.
|
inline |
Definition at line 323 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::flagRow().
|
static |
Interpolate the direction Measure polynomial.
|
inline |
Definition at line 296 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::name_p.
|
inline |
Definition at line 325 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::name().
|
inline |
Definition at line 297 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::numPoly_p.
|
inline |
Definition at line 327 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::numPoly().
|
private |
|
inline |
Definition at line 298 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::phaseDir_p.
|
inline |
Definition at line 329 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::phaseDir().
|
inline |
Definition at line 299 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::phaseDirMeas_p.
|
inline |
Definition at line 331 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::phaseDirMeasCol().
|
inline |
Definition at line 301 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::referenceDir_p.
|
inline |
Definition at line 333 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::referenceDir().
|
inline |
Definition at line 302 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::referenceDirMeas_p.
|
inline |
Definition at line 335 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::referenceDirMeasCol().
void casacore::MSFieldColumns::setDirectionRef | ( | MDirection::Types | ref | ) |
set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns.
This can only be done when the table has no rows. Trying to do so at other times will throw an exception.
void casacore::MSFieldColumns::setEpochRef | ( | MEpoch::Types | ref, |
Bool | tableMustBeEmpty = True |
||
) |
set the epoch reference 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;
|
inline |
Definition at line 304 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::sourceId_p.
|
inline |
Definition at line 337 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::sourceId().
|
inline |
Definition at line 305 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::time_p.
|
inline |
Definition at line 339 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::time().
|
inline |
Definition at line 307 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::timeMeas_p.
|
inline |
Definition at line 343 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::timeMeas().
|
inline |
Definition at line 306 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::timeQuant_p.
|
inline |
Definition at line 341 of file MSFieldColumns.h.
References casacore::ROMSFieldColumns::timeQuant().
|
private |
Definition at line 395 of file MSFieldColumns.h.
|
private |
Definition at line 398 of file MSFieldColumns.h.
|
private |
Definition at line 408 of file MSFieldColumns.h.
|
private |
Definition at line 404 of file MSFieldColumns.h.
|
private |
Definition at line 402 of file MSFieldColumns.h.
|
private |
Definition at line 394 of file MSFieldColumns.h.
|
private |
Definition at line 397 of file MSFieldColumns.h.
|
private |
Definition at line 399 of file MSFieldColumns.h.
|
private |
Definition at line 409 of file MSFieldColumns.h.
|
private |
Definition at line 400 of file MSFieldColumns.h.
|
private |
Definition at line 410 of file MSFieldColumns.h.
|
private |
Definition at line 401 of file MSFieldColumns.h.
|
private |
Definition at line 396 of file MSFieldColumns.h.
|
private |
Definition at line 407 of file MSFieldColumns.h.
|
private |
Definition at line 413 of file MSFieldColumns.h.