28 #ifndef MS_MSFIELDCOLUMNS_H
29 #define MS_MSFIELDCOLUMNS_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Arrays/ArrayFwd.h>
33 #include <casacore/measures/Measures/MDirection.h>
34 #include <casacore/measures/Measures/MEpoch.h>
35 #include <casacore/measures/Measures/MCDirection.h>
36 #include <casacore/measures/Measures/MCEpoch.h>
37 #include <casacore/measures/Measures/MRadialVelocity.h>
38 #include <casacore/measures/Measures/MeasComet.h>
39 #include <casacore/measures/TableMeasures/ArrayMeasColumn.h>
40 #include <casacore/measures/TableMeasures/ScalarMeasColumn.h>
41 #include <casacore/measures/TableMeasures/ScalarQuantColumn.h>
42 #include <casacore/tables/Tables/ArrayColumn.h>
43 #include <casacore/tables/Tables/ScalarColumn.h>
44 #include <casacore/casa/BasicSL/String.h>
51 template <
class Qtype>
class Quantum;
279 MEpoch originEpoch)
const;
282 const Double interTime,
const MEpoch originEpoch)
const;
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
Types
Types of known MEpochs Caution: The order defines the order in the translation matrix in the MCEpoch...
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 offse...
MSFieldColumns & operator=(const MSFieldColumns &)
Bool matchPhaseDir(rownr_t row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
ArrayMeasColumn< MDirection > & phaseDirMeasCol()
Bool matchDelayDir(rownr_t row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
const ScalarColumn< Int > & sourceId() const
void attach(const MSField &msField)
const ScalarColumn< Bool > & flagRow() const
MSFieldColumns(const MSField &msField)
Construct from the supplied Table.
MSFieldColumns(const MSFieldColumns &)
std::map< Int, Int > ephIdToMeasComet_p
ArrayColumn< Double > & delayDir()
ScalarColumn< Double > & time()
ScalarColumn< Int > & numPoly()
ArrayColumn< Double > & referenceDir()
static MDirection interpolateDirMeas(const Array< MDirection > &arrDir, Int numPoly, Double interTime, Double timeOrigin)
Interpolate the direction Measure polynomial.
Bool matchReferenceDir(rownr_t row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
const ScalarColumn< String > & name() const
rownr_t nrow() const
Convenience function that returns the number of rows in any of the columns.
const ArrayColumn< Double > & referenceDir() const
ArrayMeasColumn< MDirection > & delayDirMeasCol()
void attachOptionalCols(const MSField &msField)
void updateMeasComets()
Update the MeasComets objects belonging to this FIELD table.
ScalarColumn< String > & code()
Access to required columns.
MDirection phaseDirMeas(rownr_t row, Double time=0) const
ScalarColumn< String > name_p
ScalarQuantColumn< Double > timeQuant_p
const ArrayColumn< Double > & phaseDir() const
const ArrayMeasColumn< MDirection > & phaseDirMeasCol() const
ScalarQuantColumn< Double > & timeQuant()
const ScalarColumn< String > & code() const
Const access to required columns.
ScalarMeasColumn< MEpoch > & timeMeas()
~MSFieldColumns()
The desctructor does nothing special.
void getMJDs(Double &originMJD, Double &interMJD, const Double interTime, const MEpoch originEpoch) const
const ArrayColumn< Double > & delayDir() const
ScalarColumn< Int > & ephemerisId()
Access to optional columns.
ArrayColumn< Double > referenceDir_p
const ScalarQuantColumn< Double > & timeQuant() const
ScalarColumn< Bool > flagRow_p
ScalarColumn< String > & name()
ScalarColumn< String > code_p
void setEpochRef(MEpoch::Types ref, Bool tableMustBeEmpty=True)
set the epoch reference type for the TIME column.
const ScalarColumn< Int > & ephemerisId() const
Const access to optional columns.
ScalarColumn< Int > & sourceId()
const ArrayMeasColumn< MDirection > & referenceDirMeasCol() const
ArrayMeasColumn< MDirection > referenceDirMeas_p
MDirection referenceDirMeas(rownr_t row, Double time=0) const
const ScalarMeasColumn< MEpoch > & timeMeas() const
void setDirectionRef(MDirection::Types ref)
set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns.
const ScalarColumn< Double > & time() const
ScalarMeasColumn< MEpoch > timeMeas_p
MDirection delayDirMeas(rownr_t row, Double time=0) const
Access to interpolated directions from polynomials or ephemerides, the default time of zero will retu...
ArrayColumn< Double > phaseDir_p
ArrayMeasColumn< MDirection > delayDirMeas_p
const ArrayMeasColumn< MDirection > & delayDirMeasCol() const
Bool needInterTime(rownr_t row) const
Quantity rho(rownr_t row, Double time=0) const
Vector< MeasComet * > measCometsV_p
ArrayMeasColumn< MDirection > & referenceDirMeasCol()
ScalarColumn< Int > ephemerisId_p
ScalarColumn< Bool > & flagRow()
MRadialVelocity radVelMeas(rownr_t row, Double time=0) const
ArrayMeasColumn< MDirection > phaseDirMeas_p
ScalarColumn< Int > sourceId_p
const ScalarColumn< Int > & numPoly() const
Int measCometIndex(rownr_t row) const
MDirection ephemerisDirMeas(rownr_t row, Double time=0) const
ScalarColumn< Double > time_p
Int64 matchDirection(const MDirection &referenceDirection, const MDirection &delayDirection, const MDirection &phaseDirection, const Quantum< Double > &maxSeparation, Int64 tryRow=-1, Double time=0)
returns the last row that has a reference direction, phase direction and delay direction that match,...
ScalarColumn< Int > numPoly_p
ArrayColumn< Double > delayDir_p
String ephemPath(rownr_t row) const
ArrayColumn< Double > & phaseDir()
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
MSFieldColumns ROMSFieldColumns
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
uInt64 rownr_t
Define the type of a row number in a table.