29 #ifndef MEASURES_MEASCOMET_H
30 #define MEASURES_MEASCOMET_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/tables/Tables/Table.h>
35 #include <casacore/tables/Tables/TableRow.h>
36 #include <casacore/casa/Arrays/ArrayFwd.h>
37 #include <casacore/casa/Containers/RecordField.h>
38 #include <casacore/casa/BasicSL/String.h>
39 #include <casacore/casa/Quanta/MVPosition.h>
40 #include <casacore/measures/Measures/MDirection.h>
45 class MVRadialVelocity;
Types
Types of known MDirections Warning: The order defines the order in the translation matrix FromTo in ...
Bool haveTriedExtras_p
which isn't.
Bool fillMeas(Double utf) const
Fill Table lines.
MVPosition topo_p
Position on Earth.
Bool haveDiskLongLat_p
Whether or not the sub-observer longitude and latitude are available.
Bool getDisk(MVDirection &returnValue, Double date) const
Get the local on-disk direction.
void closeMeas()
Close the Comet tabls only.
Bool measFlag_p
Measured data readable.
Double getStart() const
Get the start of the table (in MJD)
Bool getRadVel(MVRadialVelocity &returnValue, Double date) const
Get the velocity from a comet table, interpolated for date(in MJD(TDB)).
const MVPosition & getTopo() const
Get the topo position.
MVPosition getRelPosition(const uInt index) const
Helper functions for accessing ldat_p.
MeasComet(const String &path)
Construct a table from the named path.
Table tab_p
Initialized in the "initialization list" of the c'tors, so maintain order:
Bool msgDone_p
Message given.
Double getTemperature(const Bool squawk)
Return the temperature in K, or -1 if the table does not have it.
const String & getName() const
Get the name of the comet.
Int nelements() const
Get number of entries.
MeasComet(const MeasComet &other)
Copy constructor.
Int lnr_p[2]
Lines in memory.
MeasComet(const Table &tabin, const String &path)
Construct a table from the name and the input table.
Vector< RORecordFieldPtr< Double > > rfp_p
These may be initialized inside the c'tors, but the order here is unimportant:
String getTablePath()
Convenience function that returns the absolute path to the ephemeris table connected to the MeasComet...
Double getEnd() const
Get the end of the table (in MJD)
ROTableRow row_p
Row descriptions.
String name_p
Name of comet.
Bool getExtras()
Try to read mean_rad_p and temperature_p, returning whether or not it was successful.
MDirection::Types getPosrefsysType() const
Get the posrefsys dir type.
MVDirection getDiskLongLat(const uInt index) const
MeasComet * clone() const
Create a clone.
Bool get(MVPosition &returnValue, Double date) const
Get a comet position.
Vector< Double > ldat_p[2]
Last read data (measlow - meashigh)
Bool initMeas(const String &which, const Table *tabin=0)
Initialise table from the name given.
Comet table has posrefsys defined *Bool hasPosrefsys() const
Bool ok() const
Is it a valid comet class (i.e.
Double getMeanRad(const Bool squawk)
Return the mean radius in AU, or -1 if the table does not have it.
static Double get_Quantity_keyword(const TableRecord &ks, const String &kw, const Unit &unit, Bool &success)
Convenience function that returns ks[kw] in units of unit, setting success.
MeasComet()
Construct using the aipsrc value (measures.comet.file)
MeasComet & operator=(const MeasComet &other)
Copy assign.
MDirection::Types getType() const
Get the direction type.
Int nrow_p
Number of rows.
MDirection::Types posrefsystype_p
Types
Types of known data.
@ N_Columns
Number of columns.
@ MJD
MJD (must be first in list)
Double mjd0_p
First MJD in list - 1.0 * dmjd_p.
Double mjdl_p
Last MJD in list.
Bool measured_p
Measured data present.
MDirection::Types mtype_p
Type of coordinates.
Double dmjd_p
Increment in rows.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
TableExprNode date(const TableExprNode &node)
bool Bool
Define the standard types used by Casacore.