HorizonsSample
Defined in: horizons.rs:43
Available on crate feature
alloconly.
pub struct HorizonsSample { pub epoch: Epoch, pub position: nalgebra::Vector3<f64>, pub velocity: nalgebra::Vector3<f64>,}One state-vector sample from a Horizons vector table.
Fields
Section titled “Fields”epoch: Epoch
Epoch reconstructed from the leading Julian Date column.
Epoch::from_jd interprets that JD as a UTC (UT-like) Julian Date, so
this is always a UTC epoch and the column must be UT-like for it to denote
the intended instant. Tables from HorizonsTable::fetch_vector_table use
TIME_TYPE=UT (JDUT), matching arika’s UTC-wall-clock epochs — so an
interpolated lookup keyed by such an epoch returns the state at the
requested instant (to within Horizons’ sub-second UT−UT1 residual). A
JDTDB-exported table parsed via HorizonsTable::from_file would have its
TDB Julian Dates misread as UTC, shifting samples ~69 s in physical time;
re-export it with TIME_TYPE=UT before parsing (the scale cannot be
recovered afterwards).
position
Section titled “position”position: nalgebra::Vector3<f64>
Position in ECI/J2000 [km].
velocity
Section titled “velocity”velocity: nalgebra::Vector3<f64>
Velocity in ECI/J2000 [km/s].