EOPStore Class Reference

#include <EarthOrientation.hpp>

List of all members.


Detailed Description

Earth orientation parameter store.

Store EarthOrientation objects in a map with key = integer MJD at which the EOPs are computed. Access the store with any DayTime, linearly interpolating the stored EOPs to the given epoch.

Definition at line 177 of file EarthOrientation.hpp.

Public Member Functions

 EOPStore ()
 Constructor.
void addEOP (int MJD, EarthOrientation &eop) throw ()
 Add to the store directly -- not recommended, use the form that takes EOPPrediction.
int addEOP (int MJD, EOPPrediction &eopp) throw (DayTime::DayTimeException)
 Add to the store by computing using an EOPPrediction, this is the usual way.
void addFile (const std::string &filename) throw (FileMissingException)
 Add EOPs to the store via an input file: either an EOPP file or a flat file produced by the IERS and available at USNO (see http://maia.usno.navy.mil/ and get either file 'finals.data' or finals2000A.data').
void addEOPPFile (const std::string &filename) throw (FileMissingException)
 Add EOPs to the store via an EOPP file: read the EOPPrediction from the file and then compute EOPs for all days within the valid range.
void addIERSFile (const std::string &filename) throw (FileMissingException)
 Add EOPs to the store via a flat IERS file.
void edit (int mjdmin, int mjdmax) throw ()
 Edit the store by deleting all entries before(after) the given min(max) MJDs.
void edit (const DayTime &tmin, const DayTime &tmax) throw ()
 Edit the store by deleting all entries before(after) the given min(max) times.
int size (void) throw ()
 return the number of entries in the store
void clear (void) throw ()
 clear the store
void dump (short detail=0, std::ostream &s=std::cout) const throw ()
 Dump the store to cout.
int getFirstMJD (void) throw ()
 Return first time (MJD) in the store.
int getLastMJD (void) throw ()
 Return last time (MJD) in the store.
EarthOrientation getEOP (DayTime &t) const throw (InvalidRequest)
 Get the EOP at the given epoch and return it.


Constructor & Destructor Documentation

EOPStore  )  [inline]
 

Constructor.

Definition at line 187 of file EarthOrientation.hpp.


Member Function Documentation

int addEOP int  MJD,
EOPPrediction eopp
throw (DayTime::DayTimeException)
 

Add to the store by computing using an EOPPrediction, this is the usual way.

Parameters:
MJD integer MJD at which to add EOPs
Returns:
non-0 if MJD is outside range

Definition at line 319 of file EarthOrientation.cpp.

References GPSTK_RETHROW.

void addEOP int  MJD,
EarthOrientation eop
throw ()
 

Add to the store directly -- not recommended, use the form that takes EOPPrediction.

Definition at line 298 of file EarthOrientation.cpp.

void addEOPPFile const std::string &  filename  )  throw (FileMissingException)
 

Add EOPs to the store via an EOPP file: read the EOPPrediction from the file and then compute EOPs for all days within the valid range.

Parameters:
filename Name of file to read, including path.

Definition at line 369 of file EarthOrientation.cpp.

References EOPPrediction::computeEOP(), EOPPrediction::getValidTime(), GPSTK_RETHROW, and EOPPrediction::loadFile().

void addFile const std::string &  filename  )  throw (FileMissingException)
 

Add EOPs to the store via an input file: either an EOPP file or a flat file produced by the IERS and available at USNO (see http://maia.usno.navy.mil/ and get either file 'finals.data' or finals2000A.data').

Parameters:
filename Name of file to read, including path.

Definition at line 341 of file EarthOrientation.cpp.

References GPSTK_RETHROW, and gpstk::StringUtils::matches().

void addIERSFile const std::string &  filename  )  throw (FileMissingException)
 

Add EOPs to the store via a flat IERS file.

Parameters:
filename Name of file to read, including path.

Definition at line 396 of file EarthOrientation.cpp.

References gpstk::StringUtils::asDouble(), gpstk::StringUtils::asInt(), GPSTK_THROW, gpstk::StringUtils::stripTrailing(), EarthOrientation::UT1mUTC, EarthOrientation::xp, and EarthOrientation::yp.

void clear void   )  throw () [inline]
 

clear the store

Definition at line 253 of file EarthOrientation.hpp.

void dump short  detail = 0,
std::ostream &  s = std::cout
const throw ()
 

Dump the store to cout.

Parameters:
detail determines how much detail to include in the output 0 start and stop times (MJD), and number of EOPs. 1 list of all times and EOPs.

Definition at line 479 of file EarthOrientation.cpp.

References DayTime::printf(), DayTime::second(), and DayTime::setMJD().

void edit const DayTime tmin,
const DayTime tmax
throw () [inline]
 

Edit the store by deleting all entries before(after) the given min(max) times.

If tmin is later than tmax, the two times are switched.

Parameters:
tmin DayTime desired earliest store time.
tmax DayTime desired latest store time.

Definition at line 243 of file EarthOrientation.hpp.

void edit int  mjdmin,
int  mjdmax
throw ()
 

Edit the store by deleting all entries before(after) the given min(max) MJDs.

If mjdmin is later than mjdmax, the two are switched.

Parameters:
mjdmin integer MJD desired earliest store time.
mjdmax integer MJD desired latest store time.

Definition at line 440 of file EarthOrientation.cpp.

EarthOrientation getEOP DayTime t  )  const throw (InvalidRequest)
 

Get the EOP at the given epoch and return it.

Parameters:
t DayTime at which to compute the EOPs.
Returns:
EarthOrientation EOPs at time t.
Exceptions:
InvalidRequest if the integer MJDs on either side of t cannot be found in the map.

Definition at line 510 of file EarthOrientation.cpp.

References gpstk::StringUtils::asString(), GPSTK_THROW, DayTime::MJD(), EarthOrientation::UT1mUTC, EarthOrientation::xp, and EarthOrientation::yp.

int getFirstMJD void   )  throw () [inline]
 

Return first time (MJD) in the store.

Definition at line 266 of file EarthOrientation.hpp.

int getLastMJD void   )  throw () [inline]
 

Return last time (MJD) in the store.

Definition at line 270 of file EarthOrientation.hpp.

int size void   )  throw () [inline]
 

return the number of entries in the store

Definition at line 249 of file EarthOrientation.hpp.


The documentation for this class was generated from the following files:
Generated on Wed Feb 8 03:31:27 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1