28 #ifndef MS_MSFIELDCOLUMNS_H
29 #define MS_MSFIELDCOLUMNS_H
51 template <
class Qtype>
class Quantum;
279 MEpoch originEpoch)
const;
282 const Double interTime,
const MEpoch originEpoch)
const;
A Measure: astronomical direction.
A 1-D Specialization of the Array class.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
ScalarColumn< String > & code()
Access to required columns.
Bool needInterTime(rownr_t row) const
ScalarColumn< Bool > flagRow_p
ScalarMeasColumn< MEpoch > & timeMeas()
ScalarColumn< String > code_p
const ScalarColumn< String > & name() const
Bool matchReferenceDir(rownr_t row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
ScalarColumn< Int > ephemerisId_p
MDirection referenceDirMeas(rownr_t row, Double time=0) const
void updateMeasComets()
Update the MeasComets objects belonging to this FIELD table.
ArrayColumn< Double > phaseDir_p
Vector< MeasComet * > measCometsV_p
ArrayColumn< Double > & referenceDir()
void getMJDs(Double &originMJD, Double &interMJD, const Double interTime, const MEpoch originEpoch) const
MSFieldColumns ROMSFieldColumns
const ArrayMeasColumn< MDirection > & referenceDirMeasCol() const
const ArrayMeasColumn< MDirection > & phaseDirMeasCol() const
ScalarColumn< Double > time_p
const ArrayColumn< Double > & phaseDir() const
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...
A Measure: radial velocity.
~MSFieldColumns()
The desctructor does nothing special.
ArrayMeasColumn< MDirection > & delayDirMeasCol()
const ScalarColumn< Int > & ephemerisId() const
Const access to optional columns.
const ScalarColumn< Bool > & flagRow() const
A Measure: instant in time.
const ArrayMeasColumn< MDirection > & delayDirMeasCol() const
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
A class to provide easy access to MSField columns.
ScalarColumn< Int > & numPoly()
ScalarQuantColumn< Double > & timeQuant()
const ScalarColumn< Double > & time() const
Quantity rho(rownr_t row, Double time=0) const
MDirection ephemerisDirMeas(rownr_t row, Double time=0) const
void attachOptionalCols(const MSField &msField)
static MDirection interpolateDirMeas(const Array< MDirection > &arrDir, Int numPoly, Double interTime, Double timeOrigin)
Interpolate the direction Measure polynomial.
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()
ScalarColumn< String > & name()
ScalarColumn< Int > & sourceId()
ScalarColumn< Int > sourceId_p
void attach(const MSField &msField)
bool Bool
Define the standard types used by Casacore.
Bool matchPhaseDir(rownr_t row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
const ScalarMeasColumn< MEpoch > & timeMeas() const
ArrayMeasColumn< MDirection > & referenceDirMeasCol()
String ephemPath(rownr_t row) const
A Table intended to hold a MeasurementSet FIELD table.
ArrayColumn< Double > delayDir_p
ScalarColumn< Int > & ephemerisId()
Access to optional columns.
void setEpochRef(MEpoch::Types ref, Bool tableMustBeEmpty=True)
set the epoch reference type for the TIME column.
const ScalarQuantColumn< Double > & timeQuant() const
uInt64 rownr_t
Define the type of a row number in a table.
ArrayMeasColumn< MDirection > & phaseDirMeasCol()
ArrayMeasColumn< MDirection > referenceDirMeas_p
const ScalarColumn< String > & code() const
Const access to required columns.
MSFieldColumns & operator=(const MSFieldColumns &)
Bool matchDelayDir(rownr_t row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
ScalarColumn< Int > numPoly_p
ScalarColumn< Bool > & flagRow()
ScalarQuantColumn< Double > timeQuant_p
ArrayMeasColumn< MDirection > phaseDirMeas_p
MDirection phaseDirMeas(rownr_t row, Double time=0) const
const ArrayColumn< Double > & referenceDir() const
String: the storage and methods of handling collections of characters.
ScalarMeasColumn< MEpoch > timeMeas_p
Int measCometIndex(rownr_t row) const
const ArrayColumn< Double > & delayDir() const
Vector of three direction cosines.
ArrayColumn< Double > referenceDir_p
Access to a scalar table column with arbitrary data type.
ArrayColumn< Double > & delayDir()
Types
Types of known MEpochs Caution: The order defines the order in the translation matrix in the MCEpoch...
ScalarColumn< String > name_p
ArrayMeasColumn< MDirection > delayDirMeas_p
rownr_t nrow() const
Convenience function that returns the number of rows in any of the columns.
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...
MRadialVelocity radVelMeas(rownr_t row, Double time=0) const
const ScalarColumn< Int > & numPoly() const
void setDirectionRef(MDirection::Types ref)
set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns.
ScalarColumn< Double > & time()
const ScalarColumn< Int > & sourceId() const
std::map< Int, Int > ephIdToMeasComet_p