Go to the documentation of this file.
22 #ifndef CECorrections_h
23 #define CECorrections_h
37 double dut1(
const double& mjd)
const;
38 double xpolar(
const double& mjd)
const;
39 double ypolar(
const double& mjd)
const;
40 double deps(
const double& mjd)
const;
41 double dpsi(
const double& mjd)
const;
42 double ttut1(
const double& mjd)
const;
56 std::ifstream
LoadFile(
const std::string& filename,
57 const std::string& url)
const;
59 const std::string& url)
const;
63 const double& x0,
const double& x1,
64 const double& y0,
const double& y1)
const;
bool DownloadTable(const std::string &filename, const std::string &url) const
Downloads the IERS earth orientation correction parameters.
void init_members(void)
Initialize data members.
std::vector< double > nutation_dut1_
double dut1(const double &mjd) const
Return the DUT1 correction parameter (represents UT1 - UTC in seconds)
void SetTtUt1PredFile(const std::string &filename)
Sets the name of the predicted values TT-UT1 corrections file.
std::string ttut1_file_pred_
File for predicted TT-UT1 corrections.
CECorrections()
Constructor for coordinate corrections object.
double InterpValue(const double &x, const double &x0, const double &x1, const double &y0, const double &y1) const
Return the interpolated value at a given x value between two known values.
double deps(const double &mjd) const
Return the offset in obliquity correction parameter (radians)
void SetInterp(bool set_interp)
Defines that the correction values should be interpolated.
std::string nutation_file_
File for nutation corrections.
void copy_members(const CECorrections &other)
Copy data members from another object.
double xpolar(const double &mjd) const
Return the x-polar motion correction parameter (radians)
std::vector< double > nutation_deps_
void UpdateTtUt1Cache(const double &mjd) const
Recompute cached values of nutation valeus if necessary.
std::string ttut1_file_hist_
File for historic TT-UT1 corrections.
double ttut1(const double &mjd) const
Return the TT-UT1 correction at a given date (in seconds)
void SetTtUt1HistFile(const std::string &filename)
Sets the name of the historic values TT-UT1 corrections file.
std::vector< int > nutation_mjd_
std::vector< double > nutation_xp_
std::ifstream LoadFile(const std::string &filename, const std::string &url) const
Initialize data members.
std::vector< double > nutation_dpsi_
void free_members(void)
Free data member objects.
std::string NutationFile(void) const
Returns the name of the nutation corrections file.
std::vector< double > ttut1_delt_
double ypolar(const double &mjd) const
Return the y-polar motion correction parameter (radians)
void UpdateNutationCache(const double &mjd) const
Recompute cached values of nutation valeus if necessary.
void SetNutationFile(const std::string &filename)
Sets the name of the nutation corrections file.
double dpsi(const double &mjd) const
Return the offset in longitude correction parameter (radians)
std::string TtUt1HistFile(void) const
Returns the name of the historic TT-UT1 corrections file.
std::vector< double > ttut1_mjd_
std::string TtUt1PredFile(void) const
Returns the name of the precited TT-UT1 corrections file.
CECorrections & operator=(const CECorrections &other)
Overloaded assignment operator.
bool LoadTtUt1(void) const
Loads the TT-UT1 correction values.
bool LoadNutation(void) const
Loads the IERS earth orientation correction parameters.
std::vector< double > nutation_yp_