Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Precession, nutation and obliquity

A star catalog gives positions on a fixed frame, the ICRS. Your telescope’s equatorial mount points along the Earth’s spin axis, and that axis doesn’t stay put. Take Polaris’s catalog position, ask where it sits relative to today’s pole and equinox, and the answer has moved by almost 9 arcminutes:

use celestial_core::angle::Angle;
use celestial_core::constants::MJD_ZERO_POINT;
use celestial_core::math::angular_separation;
use celestial_core::matrix::Vector3;
use celestial_core::nutation::NutationIAU2006A;
use celestial_core::precession::PrecessionIAU2006;
use celestial_core::utils::jd_to_centuries;

// 2026 January 1, 0h TT, as a two-part Julian date
let (jd1, jd2) = (MJD_ZERO_POINT, 61041.0);

// Polaris in the ICRS: RA 37.95456°, Dec +89.26411°
let (ra0, dec0) = (
    Angle::from_degrees(37.95456067).radians(),
    Angle::from_degrees(89.26410897).radians(),
);
let polaris = Vector3::from_spherical(ra0, dec0);

let nutation = NutationIAU2006A::new().compute(jd1, jd2)?;
let npb = PrecessionIAU2006::new().npb_matrix_iau2006a(
    jd_to_centuries(jd1, jd2),
    nutation.delta_psi,
    nutation.delta_eps,
)?;

let (ra, dec) = (npb * polaris).to_spherical();
println!(
    "RA {:.4}°, Dec {:.4}°",
    Angle::from_radians(ra).degrees(),
    Angle::from_radians(dec).degrees()
);
// RA 46.3615°, Dec 89.3736°

let moved = angular_separation(ra0, dec0, ra, dec);
println!("{:.2}'", Angle::from_radians(moved).arcminutes());
// 8.88'

The star didn’t move. The coordinate grid did. This page explains why, and which parts of celestial-core model each piece of that motion.

The example above leaves out proper motion, aberration and light deflection. celestial-coords applies those and calls these same functions underneath, so reach for it when you want an apparent place. Use the functions on this page when you need the rotation matrices themselves.

Why the pole and the equinox move

Right ascension and declination are measured against two references: the celestial pole, where the Earth’s axis points, and the equinox, where the equator crosses the ecliptic. Both drift, for three reasons.

Precession. The Sun and Moon pull on the Earth’s equatorial bulge and try to tip it into the ecliptic. The spinning Earth responds the way a top does: its axis sweeps a slow cone around the ecliptic pole, once every 26,000 years or so. The equinox slides west along the ecliptic by about 50″ a year, which is the 5038.48″ per century in the IAU 2006 precession polynomial.

Nutation. The same torques vary as the Moon’s orbit and the Earth’s orbit change geometry, so the pole wobbles around its precessing mean position. The largest term has the 18.6-year period of the Moon’s orbital nodes and an amplitude of about 9″ in obliquity. The full series sums well over a thousand smaller terms.

Obliquity. The tilt between the equator and the ecliptic is about 23.44° and shrinks by about 47″ per century. It sets the geometry for converting between equatorial and ecliptic coordinates, and it is one of the angles in the precession matrix.

Two words carry through the rest of the library. Mean means precession only: the mean equator and equinox of date. True means precession plus nutation: the true equator and equinox of date.

The models

celestial-core implements the IAU models that ERFA implements, and tests each one against ERFA output with exact equality.

QuantityType or functionModel
PrecessionPrecessionIAU2006IAU 2006, Fukushima-Williams angles
PrecessionPrecessionIAU2000Lieske et al. (1977) angles with the IAU 2000 rate corrections
NutationNutationIAU2006AIAU 2000A, scaled for use with IAU 2006 precession
NutationNutationIAU2000AIAU 2000A: 678 lunisolar and 687 planetary terms
NutationNutationIAU2000BIAU 2000B: the first 77 lunisolar terms plus a fixed planetary offset
Mean obliquityiau_2006_mean_obliquityIAU 2006
Mean obliquityiau_1980_mean_obliquityIAU 1980

For new work, use IAU 2006 precession with NutationIAU2006A. That pairing is what celestial-time uses for sidereal time and what celestial-coords uses for the CIRS. NutationIAU2006A runs the IAU 2000A series and then scales Δψ and Δε by factors of a few parts per million, so the nutation agrees with the IAU 2006 precession rate.

NutationIAU2000B trades accuracy for speed. The IERS Conventions (2003) describe it as a model for users who need the pole only at the 1 mas level, and say it stays within 1 mas of IAU 2000A over 1995 to 2050. It evaluates 77 terms where IAU 2000A evaluates 1365.

The IAU 2000 precession and IAU 1980 obliquity are here for matching older software and published values that used them.

Precession

compute takes a TT date and returns three rotation matrices in a PrecessionResult:

use celestial_core::angle::Angle;
use celestial_core::constants::MJD_ZERO_POINT;
use celestial_core::matrix::Vector3;
use celestial_core::precession::PrecessionIAU2006;

let (jd1, jd2) = (MJD_ZERO_POINT, 61041.0);
let polaris = Vector3::from_spherical(
    Angle::from_degrees(37.95456067).radians(),
    Angle::from_degrees(89.26410897).radians(),
);

let p = PrecessionIAU2006::new().compute(jd1, jd2)?;

// p.bias_matrix:            GCRS to mean equator and equinox of J2000.0 (fixed)
// p.precession_matrix:      mean J2000.0 to mean equator and equinox of date
// p.bias_precession_matrix: the two combined, GCRS to mean of date
let (ra, dec) = (p.bias_precession_matrix * polaris).to_spherical();
println!(
    "RA {:.4}°, Dec {:.4}°",
    Angle::from_radians(ra).degrees(),
    Angle::from_radians(dec).degrees()
);
// RA 46.4616°, Dec 89.3716°

This is the mean place. It differs from the opening example’s 46.3615°, 89.3736° by the nutation that example included.

The frame bias is a fixed rotation of a few tens of milliarcseconds. The ICRS axes are set by distant radio sources, and they don’t line up exactly with the mean equator and equinox of J2000.0. The bias matrix rotates from one to the other. You’ll rarely need it on its own, but it’s there for checking against published tables.

PrecessionIAU2000 returns the same three matrices from the older model. For IAU 2006, fukushima_williams_angles(t) also returns the four angles the matrix is built from, with t in Julian centuries of TT since J2000.0.

Nutation

Each nutation model returns a NutationResult with two angles in radians: delta_psi (Δψ), the nutation in longitude, and delta_eps (Δε), the nutation in obliquity.

use celestial_core::constants::{ARCSEC_PER_RAD, MJD_ZERO_POINT};
use celestial_core::nutation::{NutationIAU2000B, NutationIAU2006A};

let (jd1, jd2) = (MJD_ZERO_POINT, 61041.0);

let full = NutationIAU2006A::new().compute(jd1, jd2)?;
let short = NutationIAU2000B::new().compute(jd1, jd2)?;

println!("Δψ = {:.4}\"  Δε = {:.4}\"", full.delta_psi * ARCSEC_PER_RAD, full.delta_eps * ARCSEC_PER_RAD);
// Δψ = 5.4206"  Δε = 8.0656"

let mas = 1000.0 * ARCSEC_PER_RAD;
println!(
    "2000B - 2006A: Δψ {:.3} mas, Δε {:.3} mas",
    (short.delta_psi - full.delta_psi) * mas,
    (short.delta_eps - full.delta_eps) * mas
);
// 2000B - 2006A: Δψ 0.528 mas, Δε -0.175 mas

On that date the short model is half a milliarcsecond off in longitude. For pointing a telescope that’s nothing. For VLBI or reducing Gaia-grade astrometry, use the full model.

Combine precession and nutation

PrecessionIAU2006::npb_matrix_iau2006a builds a single matrix from the GCRS to the true equator and equinox of date. It adds Δψ and Δε to the Fukushima-Williams angles before building the rotation, which is how ERFA builds its IAU 2006/2000A matrix. The opening example uses it.

This method takes Julian centuries of TT, not a two-part date. Convert with celestial_core::utils::jd_to_centuries(jd1, jd2).

Obliquity

Both obliquity functions return the mean obliquity in radians. Add Δε for the true obliquity:

use celestial_core::angle::{Angle, DmsFmt};
use celestial_core::constants::MJD_ZERO_POINT;
use celestial_core::nutation::NutationIAU2006A;
use celestial_core::obliquity::{iau_1980_mean_obliquity, iau_2006_mean_obliquity};

let (jd1, jd2) = (MJD_ZERO_POINT, 61041.0);
let fmt = DmsFmt { frac_digits: 3 };

let mean = iau_2006_mean_obliquity(jd1, jd2)?;
let true_eps = mean + NutationIAU2006A::new().compute(jd1, jd2)?.delta_eps;

println!("mean {}", fmt.fmt(Angle::from_radians(mean)));
println!("true {}", fmt.fmt(Angle::from_radians(true_eps)));
println!("1980 {}", fmt.fmt(Angle::from_radians(iau_1980_mean_obliquity(jd1, jd2)?)));
// mean +23° 26' 9.228"
// true +23° 26' 17.294"
// 1980 +23° 26' 9.276"

The two mean values differ by 48 mas. Most of that is a different value at J2000.0, 84381.406″ for IAU 2006 against 84381.448″ for IAU 1980.

Dates and time scales

Every function here takes Terrestrial Time (TT). Passing UTC puts you about 69 seconds off, which shifts nutation by a negligible amount but is still the wrong input. If you hold a celestial_time::scales::tt::TT, its to_julian_date() returns a JulianDate with jd1() and jd2().

Dates go in as two parts, jd1 + jd2, and the models never add them before subtracting J2000. That keeps the time of day precise in jd2. Two splits work well: J2000_JD plus days since J2000, or MJD_ZERO_POINT plus the Modified Julian Date. Both constants are in celestial_core::constants.

The polynomials in these models are fitted to observations near J2000.0 and diverge far from it. Every compute call, both obliquity functions and the CIO locator reject dates more than MAX_CENTURIES_FROM_J2000 (20 centuries) from J2000.0, and they reject NaN and infinite dates:

use celestial_core::constants::J2000_JD;
use celestial_core::precession::PrecessionIAU2006;

let err = PrecessionIAU2006::new().compute(J2000_JD, 1.0e6).unwrap_err();
println!("{err}");
// Math error in model epoch (out of range): Epoch 27.4 centuries from J2000.0 is outside the model range

Edge cases

  • fukushima_williams_angles and npb_matrix_iau2006a take Julian centuries directly. They return an error for NaN or infinite input, but they don’t apply the 20-century limit, so the date check happens in the nutation compute call you make to get Δψ and Δε.
  • NutationResult holds the nutation alone. The IAU 2000A frame bias and precession-rate corrections are inside the precession models, not added to Δψ and Δε.

Where next