UTCTime Class Reference
[GeoDynamics]

#include <UTCTime.hpp>

Inheritance diagram for UTCTime:

Inheritance graph
[legend]
Collaboration diagram for UTCTime:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class to convert UTC Time to all other different time systems.

The Chart of Different Time System -------------------------------------------------------------------

-14s -----------------> BDT(Compass Time) | | +19s +32.184s +rel.effects GPST ------------> TAI ----------------> TT -----------------> TDB T | -(UT1-TAI) | | -leap seconds UT1 ---------------| |--------------------> UTC

| earth rotation ---------------------> GAST

Definition at line 63 of file UTCTime.hpp.

Public Member Functions

 UTCTime ()
 Default constructor.
 UTCTime (CommonTime &utc)
 UTCTime (int year, int month, int day, int hour, int minute, double second)
 UTCTime (int year, int doy, double sod)
 UTCTime (double mjdUTC)
virtual ~UTCTime () throw ()
 Default deconstructor.
double mjdUT1 ()
double mjdUTC ()
double mjdTT ()
double mjdTDB ()
double mjdTAI ()
double mjdGPST ()
double jdUT1 ()
double jdUTC ()
double jdTT ()
double jdTDB ()
double jdTAI ()
double jdGPST ()
Epoch asUT1 ()
 Return UT1 Time.
Epoch asUTC ()
 Return UTC Time.
Epoch asTT ()
 Return TT Time.
Epoch asTDB ()
 Return TDB Time.
Epoch asTAI ()
 Return TAI Time.
Epoch asGPST ()
 Return GPS Time.
Epoch asBDT ()
 Return BD(Compass) Time.
double xPole ()
double yPole ()
double UT1mUTC ()
double TAImUTC ()
double GPSTmUTC ()
void test ()
 some test

Static Public Attributes

const double DAY_TO_SECOND = 86400.0
 Seconds per day.
const double TT_TAI = 32.184
 Constant used for conversion to Terrestrial Time.
const double TAI_GPS = 19.0
 Constant used for conversion to GPS time.

Protected Member Functions

double ctatv (long jdno, double fjdno)
 Computes the cumulative relativistic time correction to earth-based clocks, TDB-TDT, for a given time.


Constructor & Destructor Documentation

UTCTime  )  [inline]
 

Default constructor.

Definition at line 68 of file UTCTime.hpp.

UTCTime CommonTime utc  )  [inline]
 

Definition at line 70 of file UTCTime.hpp.

UTCTime int  year,
int  month,
int  day,
int  hour,
int  minute,
double  second
[inline]
 

Definition at line 73 of file UTCTime.hpp.

UTCTime int  year,
int  doy,
double  sod
[inline]
 

Definition at line 77 of file UTCTime.hpp.

UTCTime double  mjdUTC  )  [inline]
 

Definition at line 81 of file UTCTime.hpp.

virtual ~UTCTime  )  throw () [inline, virtual]
 

Default deconstructor.

Definition at line 86 of file UTCTime.hpp.


Member Function Documentation

Epoch asBDT  ) 
 

Return BD(Compass) Time.

Definition at line 135 of file UTCTime.cpp.

References UTCTime::asGPST().

Epoch asGPST  ) 
 

Return GPS Time.

Definition at line 124 of file UTCTime.cpp.

References gpstk::TAImUTC().

Referenced by UTCTime::asBDT(), UTCTime::GPSTmUTC(), and UTCTime::test().

Epoch asTAI  ) 
 

Return TAI Time.

Definition at line 115 of file UTCTime.cpp.

References gpstk::TAImUTC().

Referenced by UTCTime::test(), and gpstk::UTC2TAI().

Epoch asTDB  ) 
 

Return TDB Time.

Definition at line 73 of file UTCTime.cpp.

References UTCTime::asTT(), UTCTime::ctatv(), Epoch::MJD(), UTCTime::MJDTime::MJDfr, and UTCTime::MJDTime::MJDint.

Referenced by HarrisPriesterDrag::computeDensity(), SunForce::doCompute(), SolarRadiationPressure::doCompute(), MoonForce::doCompute(), EarthSolidTide::getSolidTide(), and UTCTime::test().

Epoch asTT  ) 
 

Return TT Time.

Definition at line 66 of file UTCTime.cpp.

Referenced by UTCTime::asTDB(), EarthOceanTide::getOceanTide(), EarthSolidTide::getSolidTide(), and UTCTime::test().

Epoch asUT1  ) 
 

Return UT1 Time.

Definition at line 49 of file UTCTime.cpp.

References gpstk::UT1mUTC().

Referenced by EarthOceanTide::getOceanTide(), EarthSolidTide::getSolidTide(), and UTCTime::test().

Epoch asUTC  ) 
 

Return UTC Time.

Definition at line 58 of file UTCTime.cpp.

Referenced by UTCTime::GPSTmUTC(), and UTCTime::test().

double ctatv long  jdno,
double  fjdno
[protected]
 

Computes the cumulative relativistic time correction to earth-based clocks, TDB-TDT, for a given time.

Routine furnished by the Bureau des Longitudes, modified by removal of terms much smaller than 0.1 microsecond.

Parameters:
jdno. Julian day number of lookup
fjdno. Fractional part of Julian day number
Returns:
Time difference TDB-TDT (seconds)

Definition at line 153 of file UTCTime.cpp.

References gpstk::sin().

Referenced by UTCTime::asTDB().

double GPSTmUTC  ) 
 

Definition at line 322 of file UTCTime.cpp.

References UTCTime::asGPST(), and UTCTime::asUTC().

double jdGPST  )  [inline]
 

Definition at line 118 of file UTCTime.hpp.

double jdTAI  )  [inline]
 

Definition at line 116 of file UTCTime.hpp.

double jdTDB  )  [inline]
 

Definition at line 114 of file UTCTime.hpp.

double jdTT  )  [inline]
 

Definition at line 112 of file UTCTime.hpp.

double jdUT1  )  [inline]
 

Definition at line 108 of file UTCTime.hpp.

double jdUTC  )  [inline]
 

Definition at line 110 of file UTCTime.hpp.

double mjdGPST  )  [inline]
 

Definition at line 103 of file UTCTime.hpp.

double mjdTAI  )  [inline]
 

Definition at line 101 of file UTCTime.hpp.

double mjdTDB  )  [inline]
 

Definition at line 99 of file UTCTime.hpp.

double mjdTT  )  [inline]
 

Definition at line 97 of file UTCTime.hpp.

double mjdUT1  )  [inline]
 

Definition at line 93 of file UTCTime.hpp.

Referenced by EarthBody::getSpinRate().

double mjdUTC  )  [inline]
 

Definition at line 95 of file UTCTime.hpp.

Referenced by SphericalHarmonicGravity::correctCSTides(), SatOrbitPropagator::test(), and SatOrbitPropagator::writeToFile().

double TAImUTC  ) 
 

Definition at line 317 of file UTCTime.cpp.

References gpstk::TAImUTC().

void test  ) 
 

some test

Definition at line 328 of file UTCTime.cpp.

References UTCTime::asGPST(), UTCTime::asTAI(), UTCTime::asTDB(), UTCTime::asTT(), UTCTime::asUT1(), UTCTime::asUTC(), gpstk::TT2UTC(), and gpstk::UTC2TT().

double UT1mUTC  ) 
 

Definition at line 312 of file UTCTime.cpp.

References gpstk::UT1mUTC().

double xPole  ) 
 

Definition at line 302 of file UTCTime.cpp.

double yPole  ) 
 

Definition at line 307 of file UTCTime.cpp.


Member Data Documentation

const double DAY_TO_SECOND = 86400.0 [static]
 

Seconds per day.

Definition at line 40 of file UTCTime.cpp.

const double TAI_GPS = 19.0 [static]
 

Constant used for conversion to GPS time.

Definition at line 46 of file UTCTime.cpp.

const double TT_TAI = 32.184 [static]
 

Constant used for conversion to Terrestrial Time.

Definition at line 43 of file UTCTime.cpp.


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