CARMA C++
carma::services::IERSTable Class Reference

class to access (processed) IERS tables The IERSTable class reads a (processed by mk-iers.awk) IERS table and allows rapid searching in MJD to return the dut1, xpolar and ypolar wobbles. More...

#include <carma/services/IERSTable.h>

Public Member Functions

double age (void)
 return the age in days of this table. More...
 
void close (void)
 Close IERS access, ready it for another table. More...
 
double dut1 (const double mjd)
 get the UT1-UTC (dut1) in seconds for given MJD More...
 
double getMaxMJD (void)
 return maximum valid MJD More...
 
double getMinMJD (void)
 return minimum valid MJD More...
 
 IERSTable (const std::string &filename="")
 
bool isOutOfDate ()
 
void open (const std::string &filename)
 Open IERS table. More...
 
void reload ()
 Re-read the disk file. More...
 
double xpolar (const double mjd)
 get the x polar wobble in arc seconds for given MJD More...
 
double ypolar (const double mjd)
 get the y polar wobble in arc seconds for given MJD More...
 
virtual ~IERSTable ()
 Destructor. More...
 

Static Public Attributes

static const double MAX_ALLOWABLE_DAYS_OUT_OF_DATE
 Maximum time allowed between updates of the on line IERS tables. More...
 

Detailed Description

class to access (processed) IERS tables The IERSTable class reads a (processed by mk-iers.awk) IERS table and allows rapid searching in MJD to return the dut1, xpolar and ypolar wobbles.

Todo:
it currently returns the current daily value, not interpolated and thus could be off by as much as 1ms. For better accuracy a QuadInterpolator should be used
See Also
carma::services::Table

Definition at line 39 of file IERSTable.h.

Constructor & Destructor Documentation

carma::services::IERSTable::IERSTable ( const std::string &  filename = "")
Parameters
filenameIERS file to read the table from

The default constructor will open conf/catalog/IERS.tab

virtual carma::services::IERSTable::~IERSTable ( )
virtual

Destructor.

Member Function Documentation

double carma::services::IERSTable::age ( void  )

return the age in days of this table.

The age is the difference between 'today' and the first date in the table.

void carma::services::IERSTable::close ( void  )

Close IERS access, ready it for another table.

double carma::services::IERSTable::dut1 ( const double  mjd)

get the UT1-UTC (dut1) in seconds for given MJD

double carma::services::IERSTable::getMaxMJD ( void  )

return maximum valid MJD

Definition at line 92 of file IERSTable.h.

double carma::services::IERSTable::getMinMJD ( void  )

return minimum valid MJD

Definition at line 86 of file IERSTable.h.

bool carma::services::IERSTable::isOutOfDate ( )
Returns
true if this table is more than MAX_ALLOWABLE_DAYS_OUT_OF_DATE days old.
See Also
age()
void carma::services::IERSTable::open ( const std::string &  filename)

Open IERS table.

void carma::services::IERSTable::reload ( )

Re-read the disk file.

double carma::services::IERSTable::xpolar ( const double  mjd)

get the x polar wobble in arc seconds for given MJD

double carma::services::IERSTable::ypolar ( const double  mjd)

get the y polar wobble in arc seconds for given MJD

Member Data Documentation

const double carma::services::IERSTable::MAX_ALLOWABLE_DAYS_OUT_OF_DATE
static

Maximum time allowed between updates of the on line IERS tables.

Time since update is determined by current day minus the first day in the table.

Definition at line 119 of file IERSTable.h.


The documentation for this class was generated from the following file: