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

Ecliptic coordinates

Planetary theories work in the plane of the Earth’s orbit, because that’s where the planets are. VSOP2013 gives its positions on the ecliptic and equinox of J2000.0, and everything else in the library works on ICRS axes. celestial_core::ecliptic converts between the two:

use celestial_core::angle::Angle;
use celestial_core::ecliptic::vsop2013_to_icrs;
use celestial_core::matrix::Vector3;

// The June solstice point: ecliptic longitude 90°, latitude 0°
let solstice = Vector3::from_spherical(Angle::from_degrees(90.0).radians(), 0.0);

let (ra, dec) = vsop2013_to_icrs(&solstice).to_spherical();
println!(
    "RA {:.9}°, Dec {:.9}°",
    Angle::from_radians(ra).degrees(),
    Angle::from_radians(dec).degrees()
);
// RA 89.999985589°, Dec 23.439280933°

The declination is the obliquity of the frame, 84381.41136″. The right ascension misses 90° by 0.052″, which is the second angle in the rotation.

The VSOP2013 frame

The VSOP2013 paper (eq. 3) defines its ecliptic frame from the ICRS with two rotations:

ecliptic = R1(ε) R3(φ) ICRS
ε = 84381.41136″   VSOP2013_OBLIQUITY_RAD
φ = -0.05188″      VSOP2013_PHI_RAD

ε tilts the equator into the ecliptic. φ is a small rotation about the pole, because the dynamical equinox of J2000.0 is not exactly at the ICRS origin of right ascension. Both constants are in celestial_core::constants.

This frame is fixed. It’s the J2000.0 ecliptic, so the obliquity here is a constant and is not the IAU 2006 mean obliquity of any date. That makes it the right frame for heliocentric positions from the planetary theories and the wrong one for an “ecliptic longitude of date”. For ecliptic coordinates of date, celestial-coords has EclipticPosition, which uses iau_2006_mean_obliquity from the obliquity models.

Convert both ways

vsop2013_to_icrs and icrs_to_vsop2013 take and return a Vector3. Any length works, so you can pass positions in AU, velocities in AU/day or unit vectors:

use celestial_core::ecliptic::{icrs_to_vsop2013, vsop2013_to_icrs};
use celestial_core::matrix::Vector3;

// Pluto's heliocentric position in the VSOP2013 frame, in AU
let ecliptic = Vector3::new(-9.8753625435, -27.958861371, 5.8504463318);

let icrs = vsop2013_to_icrs(&ecliptic);
println!("{icrs}");
// Vector3(-9.875369581, -27.978926225, -5.753711825)

assert_eq!(icrs_to_vsop2013(&icrs), ecliptic);

Pluto sits 5.85 AU above the ecliptic but 5.75 AU south of the equator. A sign change like this is a quick check that you applied the rotation in the right direction.

The round trip is exact for this vector, but don’t count on that in general. Each direction rounds, and many vectors come back a few bits away from where they started. Compare with a tolerance when you test a round trip of your own.

Where next