EOPPrediction Class Reference

#include <EarthOrientation.hpp>

List of all members.


Detailed Description

Earth orientation parameter prediction Read data from EOPP###.txt file, available from NGA.

The formulas are: 2 2 xp(t)= A + B(t-ta) + SUM(Cj sin[2pi(t-ta)/Pj]) + SUM(Dj cos[2pi(t-ta)/Pj]) j=1 j=1

2 2 yp(t)= E + F(t-ta) + SUM(Gk sin[2pi(t-ta)/Qk]) + SUM(Hk cos[2pi(t-ta)/Qk]) k=1 k=1

4 4 UT1-UTC(t)= I+J(t-tb) + SUM(Km sin[2pi(t-tb)/Rm]) + SUM(Lm cos[2pi(t-tb)/Rm]) m=1 m=1 Ref. NGA document 'Earth Orientation Parameter Prediction (EOPP) Description' Effective date 08 August 2004 http://earth-info.nga.mil/GandG/sathtml/eoppdoc.html

Definition at line 96 of file EarthOrientation.hpp.

Public Member Functions

int getValidTime (void) const throw ()
 access the time (MJD) of validity of these parameters; the range of validity is 'this' through 'this'+7.
int loadFile (std::string filename) throw (FileMissingException)
 load the EOPPrediction in the given file
EarthOrientation computeEOP (int &mjd) const throw (Exception)
 Compute and return the Earth orientation parameters at the given MJD.
EarthOrientation computeEOP (CommonTime &t) const throw ()
 Compute and return the Earth orientation parameters at the given epoch.

Static Public Member Functions

int getSerialNumber (CommonTime &t) throw (Exception)
 Generate serial number (NGA files are named EOPP<SN>.txt) from epoch.
int getSerialNumber (int mjd) throw (Exception)

Public Attributes

int TAIUTC
 the difference between TAI and UTC in seconds - not used in the computation
int SerialNo
 the number used in the file name 'EOPP<sn>.txt'
std::string Info
 information, including the MJD of generation of these parameters.

Friends

std::ostream & operator<< (std::ostream &s, const EOPPrediction &)
 Stream output for the EOPPrediction, in format of EOPP###.txt files.


Member Function Documentation

EarthOrientation computeEOP CommonTime t  )  const throw ()
 

Compute and return the Earth orientation parameters at the given epoch.

TD how to warn if input is outside limits of validity?

Parameters:
CommonTime t Time at which to compute the earth orientation parameters.
Returns:
the EarthOrientation.

Definition at line 219 of file EarthOrientation.cpp.

References gpstk::cos(), L1, L2, P1, P2, gpstk::sin(), TWO_PI, EarthOrientation::UT1mUTC, EarthOrientation::xp, and EarthOrientation::yp.

EarthOrientation computeEOP int &  mjd  )  const throw (Exception)
 

Compute and return the Earth orientation parameters at the given MJD.

TD how to warn if input is outside limits of validity?

Parameters:
int mjd Integer MJD at which to compute the earth orientation parameters.
Returns:
the EarthOrientation.

Definition at line 197 of file EarthOrientation.cpp.

References GPSTK_RETHROW.

Referenced by EOPStore::addEOPPFile().

int getSerialNumber int  mjd  )  throw (Exception) [inline, static]
 

Definition at line 138 of file EarthOrientation.hpp.

int getSerialNumber CommonTime t  )  throw (Exception) [static]
 

Generate serial number (NGA files are named EOPP<SN>.txt) from epoch.

SN (3 digit) = YWW : year (1 digit), week of year (2 digit)

Parameters:
CommonTime t Time at which to compute the serial number
Returns:
the serial number.

Definition at line 167 of file EarthOrientation.cpp.

References GPSTK_RETHROW, and GPSTK_THROW.

int getValidTime void   )  const throw () [inline]
 

access the time (MJD) of validity of these parameters; the range of validity is 'this' through 'this'+7.

Definition at line 119 of file EarthOrientation.hpp.

Referenced by EOPStore::addEOPPFile().

int loadFile std::string  filename  )  throw (FileMissingException)
 

load the EOPPrediction in the given file

Parameters:
filename Name of file to read, including path.
Returns:
0 ok, -1 error reading file.
Exceptions:
FileMissingException if filename cannot be opened.

Definition at line 78 of file EarthOrientation.cpp.

References gpstk::StringUtils::asDouble(), gpstk::StringUtils::asInt(), GPSTK_THROW, L1, L2, P1, P2, gpstk::StringUtils::stripTrailing(), and gpstk::StringUtils::word().

Referenced by EOPStore::addEOPPFile().


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  s,
const EOPPrediction
[friend]
 

Stream output for the EOPPrediction, in format of EOPP###.txt files.

Parameters:
os stream to append formatted EOPPrediction to.
Returns:
reference to the input stream.


Member Data Documentation

std::string Info
 

information, including the MJD of generation of these parameters.

Definition at line 114 of file EarthOrientation.hpp.

Referenced by gpstk::operator<<().

int SerialNo
 

the number used in the file name 'EOPP<sn>.txt'

Definition at line 112 of file EarthOrientation.hpp.

Referenced by gpstk::operator<<().

int TAIUTC
 

the difference between TAI and UTC in seconds - not used in the computation

Definition at line 110 of file EarthOrientation.hpp.

Referenced by gpstk::operator<<().


The documentation for this class was generated from the following files:
Generated on Sun May 19 03:31:39 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1