Go to the documentation of this file.
42 inline double Temp_C2F(
const double& temp_C) {
return (1.8 * temp_C) + 32.0;}
43 inline double Temp_C2K(
const double& temp_C) {
return temp_C+273.15;}
44 inline double Temp_F2C(
const double& temp_F) {
return (temp_F - 32.0)/1.8;}
46 inline double Temp_K2C(
const double& temp_K) {
return temp_K - 273.15;}
47 inline double Temp_K2F(
const double& temp_K) {
return 1.8*temp_K-459.67;}
51 inline double c() {
return DC * DAU / DAYSEC ;}
53 inline double m_per_au() {
return DAU ;}
60 double dut1(
const double& mjd) ;
69 double xp(
const double& mjd);
70 double yp(
const double& mjd);
75 double deps(
const double& mjd);
76 double dpsi(
const double& mjd);
81 double ttut1(
const double& mjd);
85 {
return -29.3 *
SeaLevelTemp_K() * std::log(pressure_hPa/1013.25) ;}
88 {
return 1013.25 * std::exp(-elevation_m / (29.3*
SeaLevelTemp_K() )) ;}
102 void split(
const std::string& s,
104 std::vector<std::string>* elems);
105 std::vector<std::string>
split(
const std::string& s,
110 std::string
join(
const std::vector<T>& values,
112 std::string
join_angle(
const std::vector<double>& values,
void SetNutationFile(const std::string &filename)
Set the name of the file to use for defining the nutation corrections.
std::string NutationFile(void)
Return the name of the file used for defining the corrections.
std::string join(const std::vector< T > &values, const char &delim)
Method for joining a vector of values based on some delimiter into a string.
double yp(const double &mjd)
Polar motion (x) for a given modified julian date (radians)
double Temp_C2F(const double &temp_C)
double c()
speed of light (meters/second)
double deps(const double &mjd)
Earth obliquity correction for a given modified julian date (radians)
double sec_per_day()
Seconds per day.
std::string TtUt1HistFile(void)
Return the name of the file used for defining the corrections.
std::string join_angle(const std::vector< double > &values, const char &delim)
Method for splitting a string based on some delimiter into a vector of strings.
double dpsi(const double &mjd)
Earth longitude correction for a given modified julian date (radians)
double Temp_F2K(const double &temp_F)
double julian_date_J2000()
Julian Date corresponding to J2000.
void SetTtUt1PredFile(const std::string &filename)
Set the name of the file to use for defining the predicted TT-UT1 corrections.
double dut1Calc(const double &mjd)
Set the time from a vector representing Greenwich Apparent Sidereal Time.
double Temp_F2C(const double &temp_F)
double dut1Error(const double &mjd=51544.5)
std::string TtUt1PredFile(void)
Return the name of the file used for defining the corrections.
double Temp_K2C(const double &temp_K)
double EstimatePressure_hPa(double elevation_m)
Method for estimating atmospheric pressure (in hPa) from altitude (in meters)
double c_au_per_day()
speed of light (astronomical units)/day
double Temp_K2F(const double &temp_K)
void CorrectionsInterp(bool set_interp)
Set the corrections object to use interpolation.
double dut1(const double &mjd)
Return dut1 based on a given modified julian date (seconds)
double m_per_au()
meters per astronomical unit
double Temp_C2K(const double &temp_C)
void split(const std::string &s, const char &delim, std::vector< std::string > *elems)
Method for splitting a string based on some delimiter into a vector of strings.
double ttut1(const double &mjd)
TT-UT1 correction for a given MJD (seconds)
void SetTtUt1HistFile(const std::string &filename)
Set the name of the file to use for defining the historic TT-UT1 corrections.
double xp(const double &mjd)
Polar motion (x) for a given modified julian date (radians)
static CECorrections corrections
double EstimateAltitude_m(double pressure_hPa)
Method for estimating altitude (in meters) from atmospheric pressure (in hPa)