Earth orientation parameters
The models for precession and nutation tell you where the Earth’s axis points. They can’t tell you how far the Earth has turned, or where the crust is relative to that axis. The Earth’s rotation speeds up and slows down with tides, winds and the motion of its core, and the crust wanders around the rotation axis. The International Earth Rotation and Reference Systems Service (IERS) measures both and publishes the results as Earth orientation parameters (EOP).
Leave them out and the sky turns to the wrong place. On 2026 April 10, UT1-UTC is 0.047 s, which moves the Earth rotation angle by 0.71″:
use celestial_coords::astrom::earth::EarthRotation;
use celestial_coords::eop::EopProvider;
use celestial_core::angle::Angle;
use celestial_core::constants::MJD_ZERO_POINT;
use celestial_time::scales::conversions::{ToTAI, ToTT};
use celestial_time::scales::utc::UTC;
let utc: UTC = "2026-04-10T14:00:00Z".parse()?;
let tt = utc.to_tai()?.to_tt()?;
let jd = utc.to_julian_date();
let mjd = (jd.jd1() - MJD_ZERO_POINT) + jd.jd2();
let eop = EopProvider::bundled()?.get(mjd)?;
println!("{eop}");
let mut no_eop = eop.clone();
no_eop.ut1_utc = 0.0;
let era = EarthRotation::new(&tt, &eop)?.era();
let era_without = EarthRotation::new(&tt, &no_eop)?.era();
println!("{:.3}\"", Angle::from_radians(era - era_without).arcseconds());
// EOP(MJD=61140.6, xp=0.140612", yp=0.413757", UT1-UTC=0.0474262s)
// 0.713"
UT1-UTC is kept within 0.9 s by leap seconds, so ignoring it can cost up to 13.5″ in hour angle.
What a record holds
EopProvider::get returns an EopParameters for a UTC Modified Julian Date. Its fields
are public:
| Field | Unit | Used by |
|---|---|---|
ut1_utc | seconds | The Earth rotation angle: hour angle, TIRS |
x_p, y_p | arcseconds | Polar motion: the TIRS to ITRS step |
dx, dy | milliarcseconds | Pole offsets in Astrom::with_eop and Astrom::for_site |
lod | seconds | Not used by the coordinate chain |
xrt, yrt | arcseconds per day | Not used by the coordinate chain |
mjd | days | The date the values apply to |
flags | The source and which optional columns are present |
lod, dx, dy, xrt and yrt are Options, because not every source has them. A
missing dX or dY counts as zero when Astrom adds them to the pole.
Where the data comes from
The celestial-eop-data crate builds two IERS series into your binary, so the default
provider needs no files and no network:
- IERS C04: the IERS reference series of daily observed values, starting in 1962.
- finals2000A: the IERS rapid series, which runs closer to the present than C04 and continues with predictions about a year ahead.
EopProvider::bundled() uses C04 where it has data and finals2000A values after C04 ends:
use celestial_coords::eop::bundled::bundled_timestamp;
use celestial_coords::eop::EopProvider;
let provider = EopProvider::bundled()?;
let (first, last) = provider.time_span();
println!("built {}: MJD {first} to {last}, {} records", bundled_timestamp(), provider.record_count());
for mjd in [51544.0, 61100.0, 61500.0] {
let p = provider.get(mjd)?;
println!("MJD {mjd}: {:?}, UT1-UTC {:+.7} s, dX {:?} mas", p.flags.source, p.ut1_utc, p.dx);
}
let err = provider.get(last + 10.0).unwrap_err();
println!("{err}");
// built 2026-11-29: MJD 37665 to 61547, 23883 records
// MJD 51544: IersC04, UT1-UTC +0.3554724 s, dX Some(-0.137) mas
// MJD 61100: IersC04, UT1-UTC +0.0672285 s, dX Some(0.403) mas
// MJD 61500: IersFinals, UT1-UTC +0.0324861 s, dX None mas
// Data not available: MJD 61557.0 is after last available record (MJD 61547.0)
Your dates and counts depend on the celestial-eop-data release in your Cargo.lock.
Newer releases carry newer data, and cargo update -p celestial-eop-data picks them up.
The predicted rows at the end of finals2000A have no dX and dY, so MJD 61500 shows
None.
The table is parsed once per process and shared, so calling bundled() again is cheap.
EopProvider::bundled_c04() gives C04 alone, without finals2000A or predictions.
Newer data from the IERS
Predictions drift from what the Earth does. A telescope that runs for months on one build
should load a fresh finals2000A file, which the IERS publishes at
https://datacenter.iers.org/data/9/finals2000A.all:
use celestial_coords::eop::EopProvider;
// The bundled tables, with every finals2000A row after the end of C04 replaced
let provider = EopProvider::bundled_with_update("finals2000A.all")?;
// The file alone
let provider = EopProvider::from_finals_file("finals2000A.all")?;
// finals2000A text you already have in memory
let provider = EopProvider::from_finals_str(&text)?;
bundled_with_update keeps C04 as the reference where it exists and takes only the
file’s rows after C04 ends. The crate doesn’t download anything itself. The
eop_update example in celestial-coords/examples shows one way to fetch and cache the
file.
Your own values
Build records by hand for testing, or when your EOP come from somewhere else:
use celestial_coords::eop::interpolate::InterpolationMethod;
use celestial_coords::eop::record::EopRecord;
use celestial_coords::eop::EopProvider;
// IERS C04 values: MJD, x_p (arcsec), y_p (arcsec), UT1-UTC (s)
let records = vec![
EopRecord::new(61138.0, 0.136880, 0.413544, 0.0477627)?,
EopRecord::new(61139.0, 0.138546, 0.413709, 0.0477158)?,
EopRecord::new(61140.0, 0.139773, 0.413664, 0.0475928)?,
EopRecord::new(61141.0, 0.141211, 0.413823, 0.0473072)?,
EopRecord::new(61142.0, 0.142395, 0.414232, 0.0468578)?.with_cip_offsets(0.373, -0.130)?,
];
let linear = EopProvider::from_records(records.clone())?;
let lagrange = EopProvider::from_records(records)?.with_interpolation(InterpolationMethod::Lagrange5);
let a = linear.get(61140.5)?;
let b = lagrange.get(61140.5)?;
println!("linear UT1-UTC {:.7} s, dX {:?}", a.ut1_utc, a.dx);
println!("Lagrange UT1-UTC {:.7} s, dX {:?}", b.ut1_utc, b.dx);
// linear UT1-UTC 0.0474500 s, dX None
// Lagrange UT1-UTC 0.0474724 s, dX None
with_lod, with_cip_offsets and with_pole_rates add the optional columns.
EopRecord::new rejects polar motion beyond 6″ and UT1-UTC beyond 1 s, which catches
values entered in the wrong unit. Records store each value rounded to 1e-7 arcsec,
1e-7 s or 1e-4 mas.
Between table rows
The tables have one row a day, and get interpolates between them. A date that matches a
row exactly returns that row.
- Linear interpolation is the default. It uses the two rows around the date.
- Lagrange5 fits a polynomial through the five nearest rows, so it follows the curvature of the series between rows. In the example above the two methods differ by 22 µs in UT1-UTC, which is 0.34 mas of Earth rotation.
UT1-UTC jumps by a whole second at each leap second. The interpolation runs on UT1-TAI, which has no jumps, and converts back with the TAI-UTC in force on the requested date. That keeps a leap second between two rows from leaking into the result.
An optional column comes back as Some only when every row the interpolation used has
it. In the example, only one row has dX, so the interpolated dX is None.
Rows more than 5 days apart are treated as a gap, and a date inside one returns an error.
How fresh the record must be
EarthRotation and the methods built on it, such as CIRSPosition::to_hour_angle, check
the record’s mjd against the position’s epoch. A record more than one day away is
refused:
use celestial_coords::eop::EopProvider;
use celestial_coords::frames::cirs::CIRSPosition;
use celestial_core::location::Location;
use celestial_time::scales::conversions::{ToTAI, ToTT};
use celestial_time::scales::utc::UTC;
let tt = "2026-04-10T14:00:00Z".parse::<UTC>()?.to_tai()?.to_tt()?;
let site = Location::from_degrees(19.8207, -155.4681, 4205.0)?;
let last_week = EopProvider::bundled()?.get(61133.0)?;
let cirs = CIRSPosition::from_degrees(269.4, 4.76, tt)?;
let err = cirs.to_hour_angle(&site, &last_week).unwrap_err();
println!("{err}");
// Data not available: EOP record at MJD 61133 is more than 1 day from the epoch
UT1-UTC changes by up to a few milliseconds a day, so a stale record would put the Earth rotation angle tens of milliarcseconds off without any sign that something was wrong. Look up the record for each observation time, or at least once a day.
Edge cases
- Pass the UTC MJD to
get. The tables are indexed by UTC date. Passing the TT MJD shifts the lookup by about 69 seconds, which changes the interpolated values very little, but the freshness check compares against TT. - In the bundled tables, a value of exactly zero in the LOD, dX or dY column reads as absent, because the packed data stores blank columns as zero.
getreturnsCoordError::DataUnavailablefor dates outside the table. Handle it if your program runs past the end of the bundled predictions.- With
InterpolationMethod::Lagrange5,getneeds at least five records and returns an error with fewer.
Where next
- From catalog to horizon shows where each parameter enters the chain.
- The CIO and the equinox explains the pole offsets dX and dY.
- Time Scales and UTC and Leap Seconds cover UTC, UT1 and leap seconds.