28 #ifndef MS_MSFIELDCOLUMNS_H
29 #define MS_MSFIELDCOLUMNS_H
50 template <
class Qtype>
class Quantum;
51 template <
class T>
class Matrix;
97 const ROScalarColumn<String>&
code()
const {
return code_p;}
202 MEpoch originEpoch)
const;
205 const Double interTime,
const MEpoch originEpoch)
const;
331 const ROScalarColumn<String>&
code()
const {
339 const ROScalarColumn<String>&
name()
const {
353 const ROScalarColumn<Double>&
time()
const {
357 const ROScalarMeasColumn<MEpoch>&
timeMeas()
const {
const ROArrayMeasColumn< MDirection > & phaseDirMeasCol() const
A Measure: astronomical direction.
A 1-D Specialization of the Array class.
ROScalarColumn< String > name_p
String ephemPath(Int row) const
ScalarColumn< String > & code()
Read-write access to required columns.
ScalarColumn< Bool > flagRow_p
ScalarMeasColumn< MEpoch > & timeMeas()
void attach(MSField &msField)
ScalarColumn< String > code_p
const ROArrayMeasColumn< MDirection > & delayDirMeasCol() const
ROScalarColumn< Int > sourceId_p
ScalarColumn< Int > ephemerisId_p
std::map< Int, Int > ephIdToMeasComet_p
A class to provide easy access to MSField columns.
ArrayColumn< Double > phaseDir_p
ROScalarMeasColumn< MEpoch > timeMeas_p
const ROScalarColumn< Int > & ephemerisId() const
Read-only access to optional columns.
const ROArrayColumn< Double > & referenceDir() const
const ROArrayMeasColumn< MDirection > & referenceDirMeasCol() const
ArrayColumn< Double > & referenceDir()
const ROScalarColumn< Int > & sourceId() const
ROScalarColumn< String > code_p
const ROScalarColumn< Bool > & flagRow() const
const ROScalarColumn< Int > & sourceId() 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 offse...
ScalarColumn< Double > time_p
void getMJDs(Double &originMJD, Double &interMJD, const Double interTime, const MEpoch originEpoch) const
Bool needInterTime(Int row) const
A Measure: radial velocity.
Bool matchReferenceDir(uInt row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
Quantity rho(Int row, Double time=0) const
~MSFieldColumns()
The desctructor does nothing special.
ArrayMeasColumn< MDirection > & delayDirMeasCol()
const ROArrayColumn< Double > & delayDir() const
const ROScalarColumn< Double > & time() const
A Measure: instant in time.
~ROMSFieldColumns()
The desctructor does nothing special.
MDirection phaseDirMeas(Int row, Double time=0) const
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
A class to provide easy read-write access to MSField columns.
ROScalarQuantColumn< Double > timeQuant_p
ScalarColumn< Int > & numPoly()
ScalarQuantColumn< Double > & timeQuant()
const ROArrayMeasColumn< MDirection > & phaseDirMeasCol() const
Int measCometIndex(int row) const
const ROArrayMeasColumn< MDirection > & referenceDirMeasCol() const
static MDirection interpolateDirMeas(const Array< MDirection > &arrDir, Int numPoly, Double interTime, Double timeOrigin)
Interpolate the direction Measure polynomial.
Vector< MeasComet * > measCometsV_p
void attachOptionalCols(MSField &msField)
ArrayColumn< Double > & phaseDir()
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...
Bool matchDelayDir(uInt row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
ScalarColumn< String > & name()
ScalarColumn< Int > & sourceId()
ROScalarColumn< Int > ephemerisId_p
ScalarColumn< Int > sourceId_p
ROScalarColumn< Int > numPoly_p
const ROScalarColumn< String > & name() const
const ROArrayColumn< Double > & referenceDir() const
const ROArrayColumn< Double > & delayDir() const
const ROScalarQuantColumn< Double > & timeQuant() const
Bool matchPhaseDir(uInt row, const MVDirection &dirVal, const Double &sepInRad, MVDirection &mvdir, Double time=0) const
ROArrayMeasColumn< MDirection > phaseDirMeas_p
const ROScalarMeasColumn< MEpoch > & timeMeas() const
bool Bool
Define the standard types used by Casacore.
uInt nrow() const
Convenience function that returns the number of rows in any of the columns.
ROScalarColumn< Double > time_p
MDirection referenceDirMeas(Int row, Double time=0) const
const ROScalarMeasColumn< MEpoch > & timeMeas() const
MDirection delayDirMeas(Int row, Double time=0) const
Access to interpolated directions from polynomials or ephemerides, the default time of zero will retu...
const ROArrayMeasColumn< MDirection > & delayDirMeasCol() const
const ROScalarColumn< String > & name() const
ArrayMeasColumn< MDirection > & referenceDirMeasCol()
ROArrayColumn< Double > delayDir_p
const ROScalarColumn< String > & code() const
Read-only access to required columns.
A Table intended to hold a MeasurementSet FIELD table.
ArrayColumn< Double > delayDir_p
void attachOptionalCols(const MSField &msField)
ScalarColumn< Int > & ephemerisId()
Read-write access to optional columns.
void setEpochRef(MEpoch::Types ref, Bool tableMustBeEmpty=True)
set the epoch reference type for the TIME column.
const ROScalarColumn< Int > & numPoly() const
ArrayMeasColumn< MDirection > & phaseDirMeasCol()
ArrayMeasColumn< MDirection > referenceDirMeas_p
ROArrayMeasColumn< MDirection > delayDirMeas_p
const ROScalarQuantColumn< Double > & timeQuant() const
MSFieldColumns & operator=(const MSFieldColumns &)
const ROScalarColumn< Bool > & flagRow() const
ROScalarColumn< Bool > flagRow_p
ROArrayColumn< Double > referenceDir_p
ScalarColumn< Int > numPoly_p
void updateMeasComets()
Update the MeasComets objects belonging to this FIELD table.
ScalarColumn< Bool > & flagRow()
ScalarQuantColumn< Double > timeQuant_p
ArrayMeasColumn< MDirection > phaseDirMeas_p
const ROScalarColumn< String > & code() const
Read-only access to required columns.
String: the storage and methods of handling collections of characters.
ScalarMeasColumn< MEpoch > timeMeas_p
ROArrayMeasColumn< MDirection > referenceDirMeas_p
MRadialVelocity radVelMeas(Int row, Double time=0) const
Vector of three direction cosines.
ArrayColumn< Double > referenceDir_p
const ROScalarColumn< Double > & time() const
void attach(const MSField &msField)
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...
const ROArrayColumn< Double > & phaseDir() const
ScalarColumn< String > name_p
ArrayMeasColumn< MDirection > delayDirMeas_p
ROMSFieldColumns & operator=(const ROMSFieldColumns &)
MDirection ephemerisDirMeas(Int row, Double time=0) const
const ROScalarColumn< Int > & numPoly() const
void setDirectionRef(MDirection::Types ref)
set the direction reference type for the REFERENCE_DIR, DELAY_DIR & PHASE_DIR columns.
const ROArrayColumn< Double > & phaseDir() const
ScalarColumn< Double > & time()
ROArrayColumn< Double > phaseDir_p
const ROScalarColumn< Int > & ephemerisId() const
Read-only access to optional columns.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.