tempoch-cpp 0.5.3
Header-only C++ wrapper for tempoch
Loading...
Searching...
No Matches
constants.hpp
Go to the documentation of this file.
1#pragma once
2
14#include "ffi_core.hpp"
15
16namespace tempoch {
17namespace constants {
18
20inline double j2000_jd_tt() noexcept { return tempoch_const_j2000_jd_tt(); }
21
23inline double unix_epoch_jd() noexcept { return tempoch_const_unix_epoch_jd(); }
24
26inline double unix_epoch_mjd() noexcept { return tempoch_const_unix_epoch_mjd(); }
27
29inline double julian_year_days() noexcept { return tempoch_const_julian_year_days(); }
30
32inline double utc_defined_from_mjd() noexcept { return tempoch_const_utc_defined_from_mjd(); }
33
35inline double gps_epoch_jd_utc() noexcept { return tempoch_const_gps_epoch_jd_utc(); }
36
38inline double gps_epoch_jd_tai() noexcept { return tempoch_const_gps_epoch_jd_tai(); }
39
41inline double gps_epoch_tai_minus_utc_seconds() noexcept {
42 return tempoch_const_gps_epoch_tai_minus_utc_seconds();
43}
44
46inline double delta_t_prediction_horizon_mjd() noexcept {
47 return tempoch_const_delta_t_prediction_horizon_mjd();
48}
49
51inline double eop_start_mjd() noexcept { return tempoch_const_eop_start_mjd(); }
52
54inline double eop_end_mjd() noexcept { return tempoch_const_eop_end_mjd(); }
55
57inline double eop_observed_end_mjd() noexcept { return tempoch_const_eop_observed_end_mjd(); }
58
60inline double modern_delta_t_observed_end_mjd() noexcept {
61 return tempoch_const_modern_delta_t_observed_end_mjd();
62}
63
65inline double tt_minus_tai_seconds() noexcept { return tempoch_const_tt_minus_tai_seconds(); }
66
68inline double nanos_per_second() noexcept { return tempoch_const_nanos_per_second(); }
69
71inline double iau_time_epoch_t0_jd() noexcept { return tempoch_const_iau_time_epoch_t0_jd(); }
72
74inline double tdb_tt_model_high_accuracy_start_jd() noexcept {
75 return tempoch_const_tdb_tt_model_high_accuracy_start_jd();
76}
77
79inline double tdb_tt_model_high_accuracy_end_jd() noexcept {
80 return tempoch_const_tdb_tt_model_high_accuracy_end_jd();
81}
82
83} // namespace constants
84
87inline double delta_t_seconds(double jd_ut1) noexcept { return tempoch_delta_t_seconds(jd_ut1); }
88
91inline double delta_t_seconds_extrapolated(double jd_ut1) noexcept {
92 return tempoch_delta_t_seconds_extrapolated(jd_ut1);
93}
94
95} // namespace tempoch
Error handling for the tempoch C++ wrapper.
double utc_defined_from_mjd() noexcept
UTC MJD from which the UTC time scale is defined (1961-01-01, MJD 37300).
Definition constants.hpp:32
double eop_start_mjd() noexcept
First MJD covered by the compiled EOP data (UTC).
Definition constants.hpp:51
double tdb_tt_model_high_accuracy_end_jd() noexcept
Last JD(TT) of the high-accuracy TDB−TT model validity window.
Definition constants.hpp:79
double iau_time_epoch_t0_jd() noexcept
IAU time-scale epoch T0 as a Julian Date on the TT axis (1977-01-01 TAI).
Definition constants.hpp:71
double tdb_tt_model_high_accuracy_start_jd() noexcept
First JD(TT) of the high-accuracy TDB−TT model validity window.
Definition constants.hpp:74
double eop_observed_end_mjd() noexcept
Last MJD for which compiled EOP data is observed (rather than predicted, UTC).
Definition constants.hpp:57
double modern_delta_t_observed_end_mjd() noexcept
Last MJD for which modern ΔT observed values are available (UTC).
Definition constants.hpp:60
double julian_year_days() noexcept
Length of a Julian year in days (365.25 days).
Definition constants.hpp:29
double gps_epoch_tai_minus_utc_seconds() noexcept
TAI − UTC offset at the GPS epoch in seconds (19 s).
Definition constants.hpp:41
double gps_epoch_jd_utc() noexcept
GPS epoch as a Julian Date in UTC (1980-01-06T00:00:00 UTC, JD 2 444 244.5).
Definition constants.hpp:35
double eop_end_mjd() noexcept
Last MJD covered by the compiled EOP data (UTC).
Definition constants.hpp:54
double nanos_per_second() noexcept
Number of nanoseconds in one SI second (1e9).
Definition constants.hpp:68
double gps_epoch_jd_tai() noexcept
GPS epoch as a Julian Date in TAI.
Definition constants.hpp:38
double delta_t_prediction_horizon_mjd() noexcept
MJD beyond which ΔT predictions are no longer reliable (UTC).
Definition constants.hpp:46
double tt_minus_tai_seconds() noexcept
Constant TT − TAI offset in seconds (32.184 s).
Definition constants.hpp:65
double unix_epoch_jd() noexcept
Unix epoch as Julian Date on the UTC axis (1970-01-01 midnight UTC).
Definition constants.hpp:23
double unix_epoch_mjd() noexcept
Unix epoch as Modified Julian Day on the UTC axis (40 587.0).
Definition constants.hpp:26
double j2000_jd_tt() noexcept
J2000.0 epoch as a Julian Date in TT (2 451 545.0).
Definition constants.hpp:20
double delta_t_seconds_extrapolated(double jd_ut1) noexcept
Definition constants.hpp:91
double delta_t_seconds(double jd_ut1) noexcept
Definition constants.hpp:87