Skip to content

EopTable

Defined in: table.rs:12

pub struct EopTable

Interpolated EOP lookup table.

Stores sorted EOP entries and provides interpolated parameter lookups at arbitrary MJD values. Implements all four EOP capability traits (Ut1Offset, PolarMotion, NutationCorrections, LengthOfDay).

fn new(entries: [Vec<EopEntry>](https://doc.rust-lang.org/std/vec/struct.Vec.html)) -> [Result<Self, EopLookupError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Create an EOP table from a sorted vector of entries.

Entries must be sorted by MJD and non-empty.


fn from_finals2000a(text: &str) -> [Result<Self, super::error::EopParseError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Convenience: parse finals2000A text and build a table.


fn mjd_range(&self) -> (f64, f64)

MJD range covered by this table.


fn len(&self) -> usize

Number of entries.


fn is_empty(&self) -> bool

Whether the table is empty.


fn dut1_checked(&self, utc_mjd: f64) -> [Result<f64, EopLookupError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Checked UT1-UTC lookup with linear interpolation.


fn xp_checked(&self, utc_mjd: f64) -> [Result<f64, EopLookupError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Checked x-pole lookup.


fn yp_checked(&self, utc_mjd: f64) -> [Result<f64, EopLookupError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Checked y-pole lookup.


fn dx_checked(&self, utc_mjd: f64) -> [Result<f64, EopLookupError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Checked dX nutation correction lookup.


fn dy_checked(&self, utc_mjd: f64) -> [Result<f64, EopLookupError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Checked dY nutation correction lookup.


fn lod_checked(&self, utc_mjd: f64) -> [Result<f64, EopLookupError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Checked LOD lookup.