Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
gnsstk::EOPPrediction Class Reference

Detailed Description

class EOPPrediction. 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 81 of file EOPPrediction.hpp.

#include <EOPPrediction.hpp>

Public Member Functions

EarthOrientation computeEOP (double &mjd) const
 
EarthOrientation computeEOP (int &imjd) const
 
int getValidTime () const
 
int loadFile (const std::string &filename)
 

Static Public Member Functions

static int getSerialNumber (int mjd)
 

Public Attributes

std::string Info
 information, including the MJD of generation of these parameters. More...
 
int SerialNo
 the number used in the file name 'EOPP<SN>.txt' More...
 
int TAIUTC
 

Private Attributes

double A
 parameters used in the formulas More...
 
double B
 
double C1
 
double C2
 
double D1
 
double D2
 
double E
 
double F
 
double G1
 
double G2
 
double H1
 
double H2
 
double I
 
double J
 
double K1
 
double K2
 
double K3
 
double K4
 
double L1
 
double L2
 
double L3
 
double L4
 
double P1
 more parameters used in the formulas More...
 
double P2
 
double Q1
 
double Q2
 
double R1
 
double R2
 
double R3
 
double R4
 
double ta
 reference times (MJD) used in the formulas More...
 
double tb
 
double tv
 

Friends

std::ostream & operator<< (std::ostream &os, const EOPPrediction &eopp)
 

Member Function Documentation

◆ computeEOP() [1/2]

EarthOrientation gnsstk::EOPPrediction::computeEOP ( double &  mjd) const

Compute and return the Earth orientation parameters at the given epoch. TD how to warn if input is outside limits of validity?

Parameters
mjdTime (MJD) at which to compute the earth orientation parameters.
Returns
the EarthOrientation object at mjd.

Definition at line 267 of file EOPPrediction.cpp.

◆ computeEOP() [2/2]

EarthOrientation gnsstk::EOPPrediction::computeEOP ( int &  imjd) const
inline

Compute and return the Earth orientation parameters at the given MJD. TD how to warn if input is outside limits of validity?

Parameters
imjdinteger MJD at which to compute the earth orientation parameters
Returns
the EarthOrientation at imjd.
Exceptions
Exception

Definition at line 138 of file EOPPrediction.hpp.

◆ getSerialNumber()

int gnsstk::EOPPrediction::getSerialNumber ( int  mjd)
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
mjdTime (MJD) at which to compute the serial number
Returns
the serial number.
Exceptions
Exception

Definition at line 216 of file EOPPrediction.cpp.

◆ getValidTime()

int gnsstk::EOPPrediction::getValidTime ( ) const
inline

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

Definition at line 112 of file EOPPrediction.hpp.

◆ loadFile()

int gnsstk::EOPPrediction::loadFile ( const std::string &  filename)

load the EOPPrediction in the given file

Parameters
filenameName of file to read, including path.
Returns
0 ok, -1 error reading file.
Exceptions
FileMissingExceptionif filename cannot be opened.

Definition at line 56 of file EOPPrediction.cpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const EOPPrediction eopp 
)
friend

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

Parameters
osstream to append formatted EOPPrediction to.
Returns
reference to the input stream.

Member Data Documentation

◆ A

double gnsstk::EOPPrediction::A
private

parameters used in the formulas

Definition at line 92 of file EOPPrediction.hpp.

◆ B

double gnsstk::EOPPrediction::B
private

Definition at line 92 of file EOPPrediction.hpp.

◆ C1

double gnsstk::EOPPrediction::C1
private

Definition at line 92 of file EOPPrediction.hpp.

◆ C2

double gnsstk::EOPPrediction::C2
private

Definition at line 92 of file EOPPrediction.hpp.

◆ D1

double gnsstk::EOPPrediction::D1
private

Definition at line 92 of file EOPPrediction.hpp.

◆ D2

double gnsstk::EOPPrediction::D2
private

Definition at line 92 of file EOPPrediction.hpp.

◆ E

double gnsstk::EOPPrediction::E
private

Definition at line 92 of file EOPPrediction.hpp.

◆ F

double gnsstk::EOPPrediction::F
private

Definition at line 92 of file EOPPrediction.hpp.

◆ G1

double gnsstk::EOPPrediction::G1
private

Definition at line 92 of file EOPPrediction.hpp.

◆ G2

double gnsstk::EOPPrediction::G2
private

Definition at line 92 of file EOPPrediction.hpp.

◆ H1

double gnsstk::EOPPrediction::H1
private

Definition at line 92 of file EOPPrediction.hpp.

◆ H2

double gnsstk::EOPPrediction::H2
private

Definition at line 92 of file EOPPrediction.hpp.

◆ I

double gnsstk::EOPPrediction::I
private

Definition at line 92 of file EOPPrediction.hpp.

◆ Info

std::string gnsstk::EOPPrediction::Info

information, including the MJD of generation of these parameters.

Definition at line 106 of file EOPPrediction.hpp.

◆ J

double gnsstk::EOPPrediction::J
private

Definition at line 92 of file EOPPrediction.hpp.

◆ K1

double gnsstk::EOPPrediction::K1
private

Definition at line 92 of file EOPPrediction.hpp.

◆ K2

double gnsstk::EOPPrediction::K2
private

Definition at line 92 of file EOPPrediction.hpp.

◆ K3

double gnsstk::EOPPrediction::K3
private

Definition at line 92 of file EOPPrediction.hpp.

◆ K4

double gnsstk::EOPPrediction::K4
private

Definition at line 92 of file EOPPrediction.hpp.

◆ L1

double gnsstk::EOPPrediction::L1
private

Definition at line 93 of file EOPPrediction.hpp.

◆ L2

double gnsstk::EOPPrediction::L2
private

Definition at line 93 of file EOPPrediction.hpp.

◆ L3

double gnsstk::EOPPrediction::L3
private

Definition at line 93 of file EOPPrediction.hpp.

◆ L4

double gnsstk::EOPPrediction::L4
private

Definition at line 93 of file EOPPrediction.hpp.

◆ P1

double gnsstk::EOPPrediction::P1
private

more parameters used in the formulas

Definition at line 95 of file EOPPrediction.hpp.

◆ P2

double gnsstk::EOPPrediction::P2
private

Definition at line 95 of file EOPPrediction.hpp.

◆ Q1

double gnsstk::EOPPrediction::Q1
private

Definition at line 95 of file EOPPrediction.hpp.

◆ Q2

double gnsstk::EOPPrediction::Q2
private

Definition at line 95 of file EOPPrediction.hpp.

◆ R1

double gnsstk::EOPPrediction::R1
private

Definition at line 95 of file EOPPrediction.hpp.

◆ R2

double gnsstk::EOPPrediction::R2
private

Definition at line 95 of file EOPPrediction.hpp.

◆ R3

double gnsstk::EOPPrediction::R3
private

Definition at line 95 of file EOPPrediction.hpp.

◆ R4

double gnsstk::EOPPrediction::R4
private

Definition at line 95 of file EOPPrediction.hpp.

◆ SerialNo

int gnsstk::EOPPrediction::SerialNo

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

Definition at line 104 of file EOPPrediction.hpp.

◆ ta

double gnsstk::EOPPrediction::ta
private

reference times (MJD) used in the formulas

Definition at line 90 of file EOPPrediction.hpp.

◆ TAIUTC

int gnsstk::EOPPrediction::TAIUTC

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

Definition at line 102 of file EOPPrediction.hpp.

◆ tb

double gnsstk::EOPPrediction::tb
private

Definition at line 90 of file EOPPrediction.hpp.

◆ tv

double gnsstk::EOPPrediction::tv
private

MJD of beginning of times at which this formula is valid; end time of validity is tv+7. In EOPP files, this is an integer.

Definition at line 88 of file EOPPrediction.hpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:44