コンテンツにスキップ

HorizonsMoonEphemeris

このコンテンツはまだ日本語訳がありません。

Defined in: ephemeris.rs:328

pub struct HorizonsMoonEphemeris

Moon ephemeris backed by a tabulated JPL Horizons vector table with cubic Hermite interpolation.

Accuracy: depends on table sampling step. At 1-hour spacing the interpolation error is well below 100 m over a multi-week mission (dominated by third-body high-frequency perturbations, not cubic truncation). See crate::horizons::HorizonsTable::interpolate for the underlying method.

When queried outside the table’s epoch range, this ephemeris falls back to MeeusMoonEphemeris and increments an internal counter (retrievable via HorizonsMoonEphemeris::fallback_count). This lets callers detect silent drift into the lower-accuracy regime without panicking.

fn from_table(table: HorizonsTable) -> Self

Wrap an already-parsed HorizonsTable.


fn from_file(path: impl [AsRef<std::path::Path>](https://doc.rust-lang.org/std/convert/trait.AsRef.html)) -> [Result<Self, HorizonsError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Load a Horizons CSV file and wrap it.


fn date_range(&self) -> [Option<(Epoch, Epoch)>](https://doc.rust-lang.org/std/option/enum.Option.html)

First and last epochs in the underlying table.


fn fallback_count(&self) -> usize

Number of times position_eci or velocity_eci fell back to Meeus because the query epoch was outside the table range.