Skip to main content

Module constants

Module constants 

Source
Expand description

Shared GNSS constants.

These are semantic constants used across multiple GNSS modules. A parity target may still keep a local alias or comment when the operation order of a formula matters, but the source value lives here so modules do not drift.

Constants§

AU_KM
Astronomical unit in kilometers, matching Skyfield’s AU convention.
AU_M
Astronomical unit in meters, matching AU_KM.
AZIMUTH_ZENITH_EPS
Squared horizontal fraction of the unit line of sight below which the topocentric azimuth is degenerate and is defined to be 0.0.
BDS_EPOCH_MINUS_GPS_EPOCH_S
Seconds from the GPS epoch to the BeiDou epoch (2006-01-01).
BDT_MINUS_TAI_S
BeiDou time minus TAI, seconds.
C_KM_S
Speed of light in vacuum (km/s), exact SI value converted to kilometers.
C_M_S
Speed of light in vacuum (m/s), IS-GPS-200. Re-exported from the canonical core home so the value is defined once for the whole workspace.
DAYS_PER_JULIAN_YEAR
Days per Julian year.
DEGREES_PER_CIRCLE
Degrees in one full circle.
DEGREES_PER_SEMICIRCLE
Degrees in one semicircle.
DEG_TO_RAD
Degrees to radians.
F_B1I_HZ
BeiDou B1I carrier frequency (Hz).
F_B3I_HZ
BeiDou B3I carrier frequency (Hz).
F_E1_HZ
Galileo E1 carrier frequency (Hz). GPS L1 shares this frequency.
F_E5A_HZ
Galileo E5a carrier frequency (Hz).
F_L1_HZ
GPS L1 carrier frequency (Hz). Galileo E1 shares this frequency.
F_L2_HZ
GPS L2 carrier frequency (Hz).
GM_MOON_KM3_S2
Lunar gravitational parameter (km^3/s^2), DE/IAU conventional value.
GM_SUN_KM3_S2
Solar gravitational parameter (km^3/s^2), IAU 2015 Resolution B3.
GPST_MINUS_BDT_S
GPS Time minus BeiDou Time (seconds): BDT = GPST - 14 s.
GPST_MINUS_TAI_S
GPS/Galileo/QZSS system time minus TAI, seconds.
GPS_EPOCH_TO_J2000_S
Seconds from GPS epoch (1980-01-06 00:00) to J2000 (2000-01-01 12:00).
HALF_WEEK_S
Seconds in half a GNSS week, the rollover fold threshold.
J2_EARTH
Earth’s J2 coefficient used by the core force models.
J3_EARTH
Earth’s J3 unnormalized zonal coefficient from EGM96.
J4_EARTH
Earth’s J4 unnormalized zonal coefficient from EGM96.
J5_EARTH
Earth’s J5 unnormalized zonal coefficient from EGM96.
J6_EARTH
Earth’s J6 unnormalized zonal coefficient from EGM96.
J2000_JD
Julian Date of the J2000 epoch.
KM_TO_M
Kilometers to meters.
MEAN_EARTH_RADIUS_KM
Mean Earth radius used by spherical shell propagation and conical shadow (eclipse) models (km).
MEAN_EARTH_RADIUS_M
Mean Earth radius used by spherical shell propagation and conical shadow (eclipse) models (m).
MICROSECONDS_PER_SECOND
Microseconds per second, floating point. Used where a microsecond count is divided or multiplied as an f64; kept distinct from US_TO_S so the divide-by-1_000_000.0 operation order is preserved bit-for-bit.
MM_PER_M
Millimeters per meter.
M_PER_KM
Meters per kilometer.
NS_TO_S
Nanoseconds to seconds.
OBSERVABLE_TRANSMIT_TIME_ITERATIONS
Fixed transmit-time iterations for observable prediction.
OMEGA_E_DOT_RAD_S
WGS84 Earth rotation rate used by GNSS Sagnac/transport terms (rad/s).
RAD_TO_DEG
Radians to degrees.
SECONDS_PER_DAY
Seconds per civil day.
SECONDS_PER_HOUR
Seconds per civil hour.
SECONDS_PER_MINUTE
Seconds per civil minute.
SECONDS_PER_WEEK
Seconds per GNSS week.
SOLAR_RADIATION_PRESSURE_N_M2
Solar radiation pressure at 1 AU (N/m^2), the cannonball SRP convention.
SP3_DEFAULT_PROVENANCE_COMMENT
Default SP3 provenance comment emitted when a product has no comments.
SPP_TRANSMIT_TIME_ITERATIONS
Fixed transmit-time iterations for SPP residuals.
US_TO_S
Microseconds to seconds.
WGS84_A_KM
WGS84 Earth equatorial radius (km).
WGS84_A_M
WGS84 Earth equatorial radius (m).
WGS84_E2
WGS84 first eccentricity squared.
WGS84_F
WGS84 flattening.