MeasComet.h

Classes

MeasComet -- Position for comets and other solar system bodies (full description)

class MeasComet

Types

enum Types

MJD
MJD (must be first in list)
RA
Columns with data
DEC
RHO
RADVEL
DISKLONG
DISKLAT
N_Columns
Number of columns
N_Types

Interface

Public Members
MeasComet()
explicit MeasComet(const String &path)
MeasComet(const MeasComet &other)
MeasComet &operator=(const MeasComet &other)
~MeasComet()
Bool ok() const
const String &getName() const
const MVPosition &getTopo() const
MDirection::Types getType() const
Double getStart() const
Double getEnd() const
Int nelements() const
Bool get(MVPosition &returnValue, Double date) const
Bool getDisk(MVDirection &returnValue, Double date) const
Bool getRadVel(MVRadialVelocity &returnValue, Double date) const
MeasComet *clone() const
void closeMeas()
Private Members
Bool initMeas(const String &which)
Bool fillMeas(Double utf) const

Description

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25
Programs:
Tests:

Prerequisite

Etymology

From Measure and Comet

Synopsis

MeasComet is the interface class between generated Comet position tables and the Direction conversion machinery. Tables are found using the aipsrc (using measures.<table>.directory) mechanism. If not provided they are assumed to reside in standard places Tables are assumed to have the VS_VERSION, VS_DATE, VS_CREATE and VS_TYPE keywords, and be of type IERS, else an exception will be thrown.
The get() method will obtain data from the cometary tables. The data obtained will be in the specified frame. Note that the normal usage of these tables is through the Measures system.

  • A message is logged (once) if a date outside the range in the Tables is asked for.

    Thrown Exceptions

    Example

       tbd
    

    Motivation

    To use the JPL data for positions of solar system bodies

    To Do

    Member Description

    enum Types

    Types of known data

    MeasComet()

    Construct using the aipsrc value (measures.comet.file)

    explicit MeasComet(const String &path)

    Construct a table from the named path.

    MeasComet(const MeasComet &other)

    Copy constructor

    MeasComet &operator=(const MeasComet &other)

    Copy assign

    ~MeasComet()

    Bool ok() const

    Is it a valid comet class (i.e. can it be used)

    const String &getName() const

    Get the name of the comet

    const MVPosition &getTopo() const

    Get the topo position

    MDirection::Types getType() const

    Get the direction type

    Double getStart() const

    Get the start of the table (in MJD)

    Double getEnd() const

    Get the end of the table (in MJD)

    Int nelements() const

    Get number of entries

    Bool get(MVPosition &returnValue, Double date) const

    Get a comet position

    Bool getDisk(MVDirection &returnValue, Double date) const

    Get the local on-disk direction

    Bool getRadVel(MVRadialVelocity &returnValue, Double date) const

    Get the velocity from a comet table, interpolated for date(in MJD(TDB)).

    MeasComet *clone() const

    Create a clone

    void closeMeas()

    Close the Comet tabls only

    Bool initMeas(const String &which)

    Initialise table from the name given

    Bool fillMeas(Double utf) const

    Fill Table lines