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

Changelog

Changes in each release, newest first. Every crate in the workspace shares one version, so one entry covers all of them.

[0.3.0] - 2026-11-30

This release speeds up SER frame reads on captures that aren’t in the page cache yet. Only celestial-images changed. The other crates move to 0.3.0 because every crate shares one version.

celestial-images

  • Breaking: ImageError, FitsError, XisfError and SerError are #[non_exhaustive], so a match on them needs a wildcard arm. Later variants won’t break callers.
  • Breaking: SerError has a new variant, RowsOutOfBounds, returned when a row range is reversed or ends past the frame height.
  • SerReader::read_frame_into reads a frame into a buffer the caller owns, and SerReader::read_rows_into reads a band of rows from one. Both use a positioned read (pread on Linux and macOS) instead of the memory map. A 15 GB capture that isn’t in the page cache reads in 2.3 s instead of 19.6 s on one thread.
  • read_frame_data, read_frame_u16 and read_timestamp read the same way. If the file is truncated while it’s open, these methods and the two new ones return an I/O error instead of raising SIGBUS. read_frame, frame_slice, frame_slices and iter_frames still borrow the memory map.

[0.2.0] - 2026-11-29

This release changes the public API of every crate. Crate roots no longer re-export types, so imports come from the defining module. Functions that receive NaN, infinite or out-of-range input return errors. celestial-solver is published for the first time.

celestial-core

  • Breaking: The crate root no longer re-exports anything. Import from the module that defines the item, for example celestial_core::angle::Angle, celestial_core::matrix::{RotationMatrix3, Vector3}, celestial_core::location::Location and celestial_core::errors::{AstroError, AstroResult, MathErrorKind}. The submodules of nutation, precession, cio and location are now private, so celestial_core::precession::iau2006::PrecessionIAU2006 becomes celestial_core::precession::PrecessionIAU2006.
  • Breaking: Functions that can receive non-finite or undefined input now return AstroResult and need a ?. This covers wrap_pm_pi, wrap_0_2pi, Angle::wrapped, Angle::normalized, gcrs_to_cirs_matrix, iau_2006_mean_obliquity, iau_1980_mean_obliquity, PrecessionIAU2006::npb_matrix_iau2006a and PrecessionIAU2006::fukushima_williams_angles.
  • Breaking: The nutation models, PrecessionIAU2000::compute, PrecessionIAU2006::compute and both mean obliquity functions return an error for a non-finite date. They also return an error for a date more than MAX_CENTURIES_FROM_J2000 (20 Julian centuries) from J2000.0. In 0.1.1-alpha.2 they returned a value, NaN for NaN input.
  • Breaking: PrecessionIAU2000::compute takes a two-part Julian Date (date1, date2) instead of TT centuries, the same as PrecessionIAU2006::compute. fukushima_williams_angles returns a FukushimaWilliamsAngles struct with fields gamma_bar, phi_bar, psi_bar and epsilon_a instead of a 4-tuple. fw_angles_to_matrix, the PrecessionCalculator trait and the BiasMatrix, PrecessionMatrix and BiasPrecessionMatrix aliases are removed. Use RotationMatrix3 in place of the aliases.
  • Breaking: Location fields are private. Read them with latitude(), longitude() and height(). to_geocentric_km and to_geocentric_meters return (f64, f64) instead of a Result. Location::from_degrees accepts east longitudes in (180°, 360°] and stores the [-180°, 180°] equivalent. Validation errors report MathErrorKind::NotFinite or OutOfRange instead of InvalidInput.
  • Breaking: RotationMatrix3::from_array returns AstroResult. It rejects non-finite elements and any matrix that is not a proper rotation, with a tolerance of 1e-12. RotationMatrix3::get, set, Index and IndexMut are removed, so read elements with elements(). Vector3 no longer implements Index or IndexMut, so use the x, y and z fields or the fallible get and set. Vector3::normalize returns AstroResult and fails on a zero-length vector instead of returning it unchanged.
  • Breaking: AstroError and MathErrorKind are #[non_exhaustive], so match needs a wildcard arm. AstroError::ExternalLibraryError and external_library_error are removed. MathErrorKind::Overflow, Underflow and PrecisionLoss are removed. MathErrorKind now implements Copy, Eq and Display, and error messages print the kind in words, for example “(division by zero)”.
  • Breaking: These items are removed:
    • NutationModel. Use NutationIAU2000A directly.
    • EquationOfOrigins. Use the function cio::equation_of_origins(npb, s).
    • NormalizeMode and clamp_dec.
    • validate_longitude, both the free function and the Angle method.
    • The angle helpers in utils: normalize_longitude, normalize_latitude, normalize_angle_rad, normalize_angle_to_positive and angular_difference.
    • math::vincenty_angular_separation. It is replaced by math::angular_separation(lon1, lat1, lon2, lat2), which matches ERFA eraSeps.
  • Breaking: These constants are renamed:
    • MICROARCSEC_TO_RAD to TENTH_MICROARCSEC_TO_RAD. Its value was always 0.1 µas.
    • MOON_EARTH_MASS_RATIO to MOON_EMB_MASS_RATIO.
    • J2000_OBLIQUITY_RAD to VSOP2013_OBLIQUITY_RAD.
    • FRAME_BIAS_PHI_RAD to VSOP2013_PHI_RAD.
  • Breaking: The erfa-tests feature is renamed test-support. test_helpers, the nutation term tables and the fundamental-argument traits (IERS2010FundamentalArgs, MHB2000FundamentalArgs) are public only with that feature.
  • Add ecliptic::vsop2013_to_icrs and ecliptic::icrs_to_vsop2013. Add constants::SPEED_OF_LIGHT_M_PER_S and constants::MAX_CENTURIES_FROM_J2000.
  • Fix parse_angle, which read a bare number such as "45.5" as hours (682.5°). It now reads degrees, as ParseAngle::to_angle does. Sexagesimal parsing returns an error for non-ASCII digits such as "12:34:56" instead of panicking.
  • Fix SPEED_OF_LIGHT_AU_PER_DAY. It is now 173.1446326742403, ERFA’s DC. Before, it was 173.1446326846693.
  • Angle unit conversions are now correctly rounded, so results can differ from 0.1.1-alpha.2 by 1 ulp. With the serde feature, Angle rejects NaN and infinity when it serializes and deserializes. Location and RotationMatrix3 run their constructor validation when they deserialize.

celestial-wcs

  • Breaking: The crate root no longer re-exports types. Import each type from its module, for example celestial_wcs::builder::{Wcs, WcsBuilder}, celestial_wcs::coordinate::{CelestialCoord, PixelCoord}, celestial_wcs::spherical::Projection and celestial_wcs::error::WcsError.
  • Breaking: Native and celestial coordinates hold f64 degrees. CelestialCoord::new(alpha_deg, delta_deg) and NativeCoord::new(phi_deg, theta_deg) take degrees in place of Angle. The new alpha_deg(), delta_deg(), phi_deg() and theta_deg() return degrees, and alpha(), delta(), phi() and theta() still return Angle. SphericalRotation::new and SphericalRotation::from_crval also take degrees, and from_crval takes a phi_0 argument before theta_0. phi_p_degrees() and delta_p_degrees() are renamed phi_p_deg() and delta_p_deg(). IntermediateCoord::x_rad() and y_rad() are removed.
  • Breaking: Projection is an opaque struct, so callers can no longer match on its variants. Build one with its constructor, such as Projection::tan() or Projection::zpn(coeffs). Projection::cop, coe, cod and coo take a second argument, eta (PV2_2). Pass 0.0 to get the old behavior.
  • Breaking: Wcs::pixel_to_celestial returns celestial longitude in [0, 360] when CRVAL1 >= 0, and in [-360, 0] when CRVAL1 < 0. It used to return (-180, 180], so a field at CRVAL1 = 350 mapped its reference pixel to -10.
  • Breaking: Wcs::pix2world and Wcs::world2pix are removed. Use pixel_to_celestial and celestial_to_pixel. Wcs::crval() returns [f64; 2] in place of a tuple, and Wcs::projection_code() returns &'static str. Wcs::new, Wcs::linear(), CoordType::from_ctype_prefix and the WcsError constructor functions are no longer public. Wcs::cd_matrix() and Wcs::native_reference() are new.
  • Breaking: TNX distortion is removed: TnxDistortion, TnxSurface, SurfaceType and CrossTerms. The Distortion trait is also removed, and the distortion::polynomial module is now private. DistortionModel has two variants, Sip and Tpv.
  • Breaking: SipDistortion::new, set_a, set_b, set_ap, set_bp and set_inverse_order return WcsResult. They reject orders outside 2 to 9 for A and B, and outside 0 to 9 for AP and BP. They also reject a term above its order and a non-finite value. The old setters dropped these without an error. apply_inverse always solves A and B by Newton’s method and uses AP and BP only as the starting point.
  • Breaking: TpvDistortion::set_pv(axis, index, value) and pv(axis, index) replace set_pv1, set_pv2, get_pv1 and get_pv2. TpvDistortion::new() returns the identity (PV1_1 = PV2_1 = 1), and identity() is removed. Axis 2 now swaps ξ and η, as the TPV convention requires. Code that set PV2_2 = 1 for the η term must set PV2_1 instead.
  • Breaking: WcsError::CoordinateError is removed, and the crate no longer depends on celestial-coords. The new WcsError::MissingBuilderField names the WcsBuilder setter that was not called, and WcsError derives Clone. Every entry point returns InvalidParameter for NaN or infinite input. PixelCoord::to_array_index returns WcsResult<(usize, usize)>, with OutOfBounds for a non-finite pixel or one below 0.5.
  • Breaking: WcsBuilder::build rejects more input. It rejects PV2_m values set beside an explicit projection(), and projection parameters outside Paper II’s ranges, such as AZP with mu = -1. WcsBuilder::from_header rejects a CTYPE1/CTYPE2 pair that is not a celestial pair. A CYP header without PV2_1 now uses Paper II’s default mu = 1. The old default was 0.
  • WcsBuilder::from_header reads more headers:
    • TAN-SIP and TPV headers, which used to fail with UnsupportedProjection.
    • CROTA2.
    • CUNIT in arcmin, arcsec, mas or rad.
    • Headers that list latitude first.
    • PV2_0 to PV2_29 (up to PV2_20 before), and PV1_0 to PV1_4 for the fiducial point, LONPOLE and LATPOLE.
    • Absent CRPIX and CRVAL now default to 0 and absent CDELT to 1, as Paper I specifies.
  • Wcs::to_keywords writes CUNIT1 and CUNIT2, the SIP or TPV terms, PV1_m and the header’s own generic CTYPE prefixes. This lets a header read back as the same WCS. It leaves out PV2_m values that are at their Paper II defaults.
  • Fix three projection bugs:
    • The pole longitude in SphericalRotation::from_crval was wrong when CRVAL2 < 0 for projections whose fiducial point is on the native equator (CAR, MER, CEA, CYP, SFL, PAR, MOL, AIT, BON, PCO, TSC, CSC, QSC). Their reference pixel mapped 180 degrees away in RA.
    • Conic projections with a southern standard parallel flipped the sign of native longitude.
    • The ZPN inverse could return a root past the first turning point.

celestial-time

  • Breaking: Nothing is re-exported from the crate root or from the scales, sidereal, transforms and scales::conversions module roots. Import from the defining module, for example celestial_time::julian::JulianDate, celestial_time::scales::tt::TT, celestial_time::scales::conversions::tt_tdb::ToTDB and celestial_time::sidereal::gmst::GMST. The parsing module is private, so parse_iso8601 and ParsedDateTime are gone. Parse with FromStr on a scale type instead, for example "2000-01-01T12:00:00".parse::<TT>().

  • Breaking: Constructors and conversions that can fail now return TimeResult. This covers:

    • JulianDate::from_calendar and every *_from_calendar function.
    • UTC::new, UTC::now and UTC::to_iso8601.
    • TT::centuries_since_j2000, get_tai_utc_offset and calendar_to_julian.
    • from_hours, from_degrees and from_radians on SiderealAngle, GMST, GAST, LMST and LAST.
    • hour_angle_to_target, GMST::to_lmst, GAST::to_last, LMST::to_gmst and LAST::to_gast.

    These functions reject dates that do not exist, out-of-range times of day and non-finite values.

  • Breaking: JulianDate:

    • The fields are private. Read them with jd1() and jd2().
    • Add and From<f64> are removed. Use add_days and from_f64.
    • Sub returns the difference in days as an f64.
    • == compares the date value, so JulianDate::new(2451545.0, 0.5) == JulianDate::new(2451545.5, 0.0).
    • Display prints both parts, for example JD 2451545 + 0.5. Before, it printed the sum to nine decimals.
  • Breaking: TimeError::InvalidDate carries a String message.

  • Breaking: UTC is undefined before 1960-01-01. utc_from_calendar, UTC::new, UTC::from_str, get_tai_utc_offset and the UTC conversions return TimeError::InvalidDate for those dates. Before, they used TAI-UTC = 0.

  • Breaking: TT::centuries_since_j2000 returns TimeError::InvalidEpoch more than 20 centuries from J2000.0. Nutation, precession, GMST and GAST use it, so they fail for the same dates. earth_rotation_angle fails for a non-finite date or one more than 1e12 days from J2000.0.

  • Breaking: These conversion items are removed:

    • The traits ToUT1, ToTCB, ToTCGFromTCB and ToUTCViaTAI, with the direct TCG-TCB conversion.
    • The identity conversions such as TT::to_tt().
    • ToTT for TDB. Use ToTTFromTDB.
    • The free functions utc_to_tai and tai_to_utc. Use to_tai() and to_utc().
  • Breaking: These other items are removed:

    • TT::from_jd and from_julian_date_raw on TT, TAI and GPS. Use from_julian_date(JulianDate::new(jd1, jd2)).
    • ObservatoryContext and the sidereal j2000() constructors.
    • LAST::from_lmst_and_equation_of_equinoxes.
    • From<LMST> for GMST and From<LAST> for GAST.
    • scales::common::is_leap_year and scales::common::next_calendar_day.
    • Every public constant in celestial_time::constants except UNIX_EPOCH_JD.
  • UTC::new handles leap seconds the same way utc_from_calendar does. A day that ends in a leap second is 86,401 s long. Add UTC::to_unix as its inverse. UTC::from_str accepts a trailing Z, and the other scales return ParseError for it. ISO 8601 parsing accepts expanded years such as +10000 and a lowercase t separator.

  • Fix TT-to-TDB with a location. The diurnal terms read the TT day fraction counted from noon, so they ran 12 hours off. They now read the UT1 fraction from midnight. to_tdb_with_location* and to_tt_with_location* match the ERFA eraDtdb chain bit-for-bit. TDB-to-TT evaluates the series once at TDB instead of three times. The UT1 offset parameter is renamed ut1_minus_tt_seconds.

  • Fix UTC::to_iso8601. It truncated, so it could print 60.000 seconds outside a leap second. It now rounds to the millisecond and carries into the minute. It prints :60 only during a leap second. Fix UTC::now, which returned the Unix epoch when the system clock read before 1970.

  • UTC-to-UT1 reads TAI-UTC at 0h on the UTC date, as eraUtcut1 does, which changes results before 1972. SiderealAngle Display never shows 24.000000h. With serde, SiderealAngle wraps a stored angle into range and rejects non-finite values.

celestial-coords

  • Breaking: The crate root re-exports nothing, and frames, eop and transforms no longer re-export their types. Import each type from the module that defines it, for example celestial_coords::frames::icrs::ICRSPosition, celestial_coords::eop::record::EopParameters, celestial_coords::errors::CoordError and celestial_coords::transforms::cartesian::CartesianFrame. Import Angle, Location, Vector3 and TT from celestial_core and celestial_time.

  • Breaking: Conversions that depend on the Earth’s rotation take &EopParameters in place of a delta-T in seconds or a second epoch. The new signatures are CIRSPosition::to_hour_angle(&observer, &eop), HourAnglePosition::to_cirs(&eop), TopocentricPosition::to_cirs(&eop), ITRSPosition::to_tirs(&eop) and TIRSPosition::to_itrs(&eop). TIRSPosition::from_cirs, from_itrs and compute_delta_t are removed. Use CIRSPosition::to_tirs, ITRSPosition::to_tirs or astrom::earth::EarthRotation instead. These calls return an error when the EOP record is more than one day from the position’s epoch.

  • Breaking: TopocentricPosition::atmospheric_refraction, with_refraction and without_refraction take a &Refraction in place of four weather numbers. Refraction::new(pressure_hpa, temperature_c, relative_humidity, wavelength_um)? gives the closed-form constants. Refraction::from_weather(&weather)? gives ray-traced constants. Both return an error for non-finite input.

  • Breaking: These functions now return CoordResult, so callers add ?:

    • solar::compute_solar_orientation and solar::sun_earth_distance
    • lunar::compute_lunar_orientation, compute_optical_libration and compute_sub_earth_point
    • HeliographicStonyhurst::disk_center and SelenographicPosition::is_visible_from_earth
    • EclipticPosition::mean_obliquity
    • the four diurnal parallax methods on TopocentricPosition
    • ITRSPosition::new, TIRSPosition::new and both types’ from_position_vector
    • aberration::remove_aberration and aberration::remove_light_deflection

    NaN or infinite input returns an error where it used to produce NaN output.

  • Breaking: EOP API changes:

    • EopRecord::new no longer takes lod_sec. Add LOD with .with_lod(lod_sec)?.
    • EopParameters::lod is Option<f64>.
    • EopParameters::s_prime, compute_s_prime, compute_s_prime_jd, compute_era, corrected_cip_x and corrected_cip_y are removed from the public API.
    • EopRecord fields, EopRecord::with_flags, eop::parse and bundled::load_bundled_combined are crate-private. Use EopProvider::from_finals_str or from_finals_file to parse finals data.
    • EopProvider::time_span and EopInterpolator::time_span return (f64, f64) in place of an Option.
    • EopInterpolator::new and with_max_gap return CoordResult, and EopInterpolator::extend is no longer public.
    • EopSource::IersPrediction, EopSource::Interpolated and EopQuality::LowPrecision are removed.
  • Breaking: CoordError constructors are crate-private. EpochError and CoreError are tuple variants that wrap the source error, so CoreError(AstroError) replaces CoreError { message }. MissingObserver and ExternalError are removed. File reads return Io { context, source }. CoordError no longer implements Serialize or Deserialize.

  • Breaking: These items are removed:

    • the lighttime module and LightTimeCorrection
    • ICRSPosition::position_uncertainty_arcsec
    • solar::compute_b0, compute_l0, compute_p, CARRINGTON_EPOCH_JD and CARRINGTON_SYNODIC_PERIOD. Read B0, L0 and P from compute_solar_orientation.
    • HeliographicCarrington::carrington_rotation_number

    solar::carrington_rotation_number returns a fractional f64, where it used to return a u32 count. TopocentricPosition::parallactic_angle(ha, dec) is now HourAnglePosition::parallactic_angle(). set_radius on the heliographic and selenographic types is crate-private.

  • Breaking: HourAnglePosition::new folds a declination past a pole back over the pole and adds 12 h to the hour angle, so declination() stays within ±90°. Callers that stored pier-flipped declinations must track the flip themselves.

  • Add astrom::Astrom. It computes the Earth’s position, velocity and GCRS-to-CIRS matrix once per epoch and converts positions between ICRS, GCRS and CIRS. Astrom::with_eop applies the observed CIP offsets dX and dY. Astrom::for_site uses the site’s position and velocity, which adds up to 0.32“ of diurnal aberration. Add astrom::earth::EarthRotation for CIRS, TIRS, ITRS and hour angle.

  • Add proper_motion::CatalogStar::propagate. It propagates a star with parallax and radial velocity, following SOFA’s pmsafe. Add aberration::apply_annual_aberration and remove_annual_aberration for RA/Dec pairs.

  • Add selectable refraction models: the RefractionModel trait, refraction::weather::Weather, ray_trace::RayTrace and closed_form::ClosedForm. RayTrace uses Ciddor refractivity for optical wavelengths by default, or Hohenkerk and Sinclair, and Rueger refractivity above 100 µm. Refraction::from_model selects a model. RefractionModel::refraction_at and observed_zenith_distance give the refraction at a zenith distance and its inverse.

  • Fix the Earth-rotation chain:

    • CIRS to TIRS rotated by minus the Earth rotation angle (ERA) and now rotates by plus the ERA.
    • Hour angle subtracted the CIRS right ascension from apparent sidereal time, which is wrong by the equation of the origins, about 19’ in 2025. It now uses the ERA and applies polar motion, matching eraApco13 with eraAtioq.
  • Fix ICRS to GCRS. It applied aberration only and now also applies light deflection by the Sun, as ICRS to CIRS already did. ICRS to GCRS and ICRS to CIRS apply annual parallax when the position has a distance, matching eraAtciq. ICRS, GCRS and CIRS conversions no longer reject epochs outside 1900 to 2100.

  • Fix refraction near the horizon. A tan z + B tan³ z had no limit and diverged near the horizon. with_refraction evaluated it at the true place rather than the observed place. All three methods now use ERFA’s horizon limits.

  • Fix four EOP bugs:

    • UT1-UTC interpolation across a leap second used to jump by one second.
    • CIP offsets beyond ±3.2767 mas were clipped.
    • EopProvider::bundled_with_update kept the bundled rows on days the update file covered. It now uses the update file’s rows.
    • Bundled rows with no LOD are flagged Predicted.

    Duplicate MJDs and non-finite values return errors.

  • Fix solar and lunar orientation:

    • B0, L0, P and the Carrington frame now follow Meeus chapter 29.
    • Lunar libration and position angle follow Meeus chapter 53.
    • compute_sub_earth_point includes physical libration. It used to return the optical libration.
  • Fix five topocentric bugs:

    • The parallactic angle formula dropped a cos(latitude) factor.
    • is_circumpolar and never_rises were wrong in the southern hemisphere.
    • Diurnal parallax ignored the observer’s height and the Earth’s flattening, and it now updates the distance. An object inside the Earth returns an error, where it used to return 90°.
    • EclipticPosition::to_icrs uses the position’s own epoch rather than the argument.
    • air_mass_pickering returns infinity below -1.115°. It used to return negative values between -2° and -1.115°.

celestial-catalog

  • Breaking: The catalog file format is now version 2, and Catalog::open rejects version 1 files with a message to rebuild. Version 1 put stars at RA 270 to 360 in the equatorial belt (|Dec| <= 41.8 degrees) under the wrong HEALPix base pixel. The forge intermediate files changed format too, so rebuild with all four stages: ingest-gaia, ingest-hipparcos, merge and build-index.
  • Breaking: query no longer re-exports types. Import from query::catalog::{Catalog, CatalogHeader, StarRecord} and query::cone::{cone_search, ConeSearchParams, ConeSearchResult}. cone_search_at_epoch is removed. Set ConeSearchParams::epoch and call cone_search instead.
  • Breaking: Library functions return celestial_catalog::error::CatalogError in place of anyhow::Error, and anyhow is now a dependency of the cli feature only. Catalog::open returns CatalogResult<Catalog>. cone_search returns CatalogResult<Vec<ConeSearchResult>>. It rejects non-finite input, Dec outside [-90, 90], a negative radius and a non-finite epoch. ang2pix_nest returns CatalogResult<u64> and rejects an order above 29 or an invalid position.
  • Breaking: cone_search propagates each star with full space motion, including parallax, using celestial_coords::proper_motion::CatalogStar::propagate. It starts from the epoch in the catalog header and reads ConeSearchParams::epoch as TT. It used to apply proper motion linearly from a fixed J2016.0. It skips records with a non-finite place or a motion that cannot be propagated.
  • Breaking: A Hipparcos record with no Gaia cross-match has the negated HIP number as its source_id. It used to be 0x4000_0000_0000_0000 | HIP.
  • Catalogs built by forge have different contents:
    • A cross-matched star keeps the Gaia record when Gaia has a 5- or 6-parameter solution, and keeps the Hipparcos record otherwise. The new FLAG_5_OR_6_PARAM marks these Gaia solutions.
    • A Hipparcos star with no Gaia ID link is paired with a Gaia record within 2“ whose Hp - G is in [-1.0, +2.0].
    • Gaia duplicated sources are kept and marked with the new FLAG_DUPLICATED_SOURCE.
    • FLAG_BP_RP_EXCESS_SUSPECT uses the corrected excess factor C* from Riello et al. 2021.
    • Hipparcos positions are propagated to J2016.0 with parallax, which moves them by up to 0.058“.
  • Fix cone search pixel selection. It descends the HEALPix NEST hierarchy and keeps every pixel that a point of the cone falls in. The old code sampled a grid of points and could miss pixels. A disc that covers more than 12 * 4^10 pixels returns an error.
  • Catalog::open checks more of the file:
    • The header’s epoch must be within 20 centuries of J2000.
    • The file length must match the header exactly.
    • Every pixel table entry must point at its own run of records.
    • Star records are read with bytemuck, and StarRecord derives bytemuck::Pod and bytemuck::Zeroable.
  • Add query::quad with tan_project_star, tan_deproject_star, neighbor_quads, relabelled_quads, discrete_hash_key, discrete_hash_key_neighbors, Quad and QuadStar, which celestial-solver uses to match quads. Each quad’s star labels and hash code are the same at any rotation of the field.
  • Add helpers for writing catalog files:
    • CatalogHeader::to_bytes, StarRecord::to_le_bytes, StarRecord::from_le_bytes and query::catalog::pixel_entry_bytes.
    • query::healpix::nside_and_npix, query::healpix::reduce_ra_deg and query::validate::check_epoch.
    • celestial_catalog::VERSION.
    • A test-support feature that exposes query::test_support.
  • forge changes:
    • download-gaia resumes from a manifest and connects with a 30 s timeout. It retries with backoff and writes each file through a temporary file.
    • download-gaia skips a local file whose MD5 matches ESA’s _MD5SUM.txt. This adds md-5 to the cli feature.
    • download-gaia and ingest-gaia check that the Gaia files cover every level-8 HEALPix pixel exactly once. --allow-partial-sky turns that check into a warning.
    • ingest-gaia requires a bp_rp column and skips malformed rows.
    • build-index accepts --healpix-order up to 10. It reads the epoch and magnitude limit from the merged data and replaces the output file only after the new file opens.
  • query-catalog --date converts 00:00:00 UTC on the date to TT. It used to pass the UTC date as TT, which was 69.184 s off. Its help text now names the program query-catalog.

celestial-pointing

  • Breaking: The crate is rewritten, and the 0.1 API is gone: PointingModel, solver::fit_model, terms::create_term, IndatFile, the parser and plot modules, and the celestial_pointing::Error re-export. The new entry points are observation::ObservationSet::read_indat and ObservationSet::reduce, model::Model::new with model::model_from_names, fit::fit with FitOptions and FitOutcome, and the frame types in frames. Code can also drive a session::Session through commands::execute, the same commands the shell runs.
  • Breaking: The pointing binary builds only with the cli feature. Install it with cargo install celestial-pointing --features cli.
  • Breaking: Remove alt-azimuth support. INDAT files marked :ALTAZ or :GIMBAL return Error::Indat, and the alt-az terms IA, IE, CA, NPAE, AN and AW no longer exist. Harmonic terms with result codes S, A and E return Error::UnsupportedTerm.
  • fit::fit fits the model as a nonlinear problem. Each Gauss-Newton step is solved by truncated SVD. Singular values below FitOptions::fittol times the largest are dropped from the step and from the sigmas, so models with dependent terms still fit. FitOutcome returns the coefficients with sigmas, the per-observation residuals, the sky RMS, the PSD and the singular values.
  • Terms are evaluated in chain order. Each term is evaluated at a working place that the earlier terms have moved. A term with ModelTerm::parallel set uses the same place as the term before it. FLOP is applied as a vertical shift. Model::mount_to_sky applies the model, and Model::sky_to_mount inverts it by Newton iteration.
  • Add the terms FLOP, TX10, X2HC and DNP, alongside IH, ID, CH, NP, MA, ME, TF, TX, FO, HCES, HCEC, DCES, DCEC and DAF. Generic harmonic terms such as HDSH, HXCH2SD and HHSH% accept the angles H, D, A, Z, E and Q, whole multiples, and half-angle (%) multiples.
  • Apply refraction when reducing star places. RunRefraction holds either fixed Refraction constants or a RefractionModelKind that computes them from the INDAT run record’s weather. The kinds are Ciddor (ray trace, the default), HohenkerkSinclair and ClosedForm. The shell sets refraction with REFRACT <A> <B> and REFMODEL [CIDDOR | HS | CLOSED].
  • Reject stars on reading when they are at or below 10 degrees unrefracted elevation, or within 0.2 degrees of the zenith or a celestial pole. The INDAT option ALLSKY keeps every star.
  • Read and write INDAT Format 1 with ObservationSet::from_indat and ObservationSet::to_indat. Read and write OUTMOD with outmod::parse_outmod and outmod::format_outmod, including the & (parallel) and = (fixed) flags. INDAT Format 2, subsets and catalog-star records return Error::Indat.
  • Add automodel::automodel, which the shell runs as FAUTO [<max harmonic> [<significance>]] [CROSS]. It starts from a basic model sized to the observation count. It then adds significant TF, TX10, DAF and harmonic sine/cosine pairs, removes weak terms, and masks outliers by leave-one-out residual. A progress::Progress implementation receives each log line and can cancel the search. vetting (MVET) ranks the floating terms and removes weak ones. quality::leave_one_out_residuals and quality::jackknife_psd (LOO) report the leave-one-out residuals and the jackknife PSD.
  • Add pointer::Pointer for applying a fitted model at a site. Pointer::mount_for returns the mount reading for an ICRS target, and Pointer::sky_for returns the ICRS direction for a mount reading. Both use EOP data when it is supplied. Observation::from_icrs builds an observation from an ICRS star and the raw encoder reading.
  • Add pointing_run::PointingRun, which refits the model after each star is added. The basic terms grow from IH ID to IH ID NP CH ME MA as stars arrive. Add polar_alignment::PolarAlignment::from_fit, which converts the fitted ME and MA into polar axis adjustments with sigmas.
  • In a terminal, the pointing binary opens a full-screen UI with residual graphs, model and observation tabs, point masking, and a cancellable FAUTO. --plain gives a line editor, and a script path or stdin runs a script. The shell adds APPEND, FLIST, LOO, G, INPRO/CALL procedures and GC (SVG output). It drops ADJUST, APPLY, CHAIN, CLIST, CORRECT, GDEC, GHA, GHYST, GMAP, LST, OPTIMAL, OUTL, PARALLEL, PREDICT, RESET and SHOW.
  • Add a serde feature. Drop the dependencies on nalgebra, regex, rayon, bitflags, dirs, plotters and textplots. Without cli, the library depends only on the celestial crates, libm and thiserror.

celestial-images

  • Breaking: The crate root and the module files no longer re-export anything. Import each type from the module that defines it, for example celestial_images::formats::image::Image, celestial_images::fits::io::reader::FitsFile or celestial_images::xisf::reader::XisfFile. formats::unified is split into formats::{image, astro_image, pixel_data, format, kind}.
  • Breaking: Removed ImageWriter, TelescopeParams, formats::ImageInfo, FitsWriter, KeywordBuilder, FrameType, FitsImage, WcsInfo, HeaderParser, HeaderCard and Header::get_keyword_value. Also removed: the ricecomp and fits::util modules, compress_tile, decompress_tile, the typed read_column_* table readers, XisfFile::header, XisfFile::read_image_data, XisfFile::fits_keywords, XisfWriter::set_fits_keyword and wcs_to_xisf_properties. Write files with Image::save, Image::save_fits_compressed or AstroImage. Set capture metadata with their exposure, gain, filter, object and date_obs setters. Read values with Header::get, table columns with get_column_values, and XISF pixels with read_image_data_typed. The simd feature is removed.
  • Breaking: PixelData gains I8, U32, I64 and U64. TableValue gains I8, U16, U32, U64, Bits and Array. XisfPropertyValue gains Boolean, Other and OtherArray, and CompressionAlgorithm gains Gzip2. ImageError, FitsError, XisfError and SerError have new and removed variants. Update exhaustive match expressions.
  • Breaking: Image has a new public field, xisf_properties. Keyword has a new private field, so build keywords with Keyword::new or a typed constructor such as Keyword::real instead of a struct literal.
  • Breaking: Image::debayer, debayer_bilinear_u8 and debayer_bilinear_u16 return Result. Image::debayer accepts every sample type, mirrors the edges and removes BAYERPAT, XBAYROFF and YBAYROFF. A non-mono image, or one smaller than 2x2, returns InvalidDimensions. 0.1 left those images unchanged without an error.
  • Breaking: Image::normalize converts integer pixels to F64. 0.1 kept the integer type, which rounded every value to 0 or 1.
  • Breaking: AstroImage writes uncompressed FITS by default. 0.1 wrote Rice-compressed tiles. compressed() takes a CompressionAlgorithm instead of a bool. AstroImage::keyword replaces an earlier card with the same name. 0.1 added a second card.
  • Breaking: Saving signed integer pixels to XISF returns an error. 0.1 wrapped negative values to large unsigned ones. Convert first with PixelData::signed_to_offset_unsigned or PixelData::signed_to_float. XISF files that 0.1 wrote with LZ4 compression no longer open. 0.1 prefixed each LZ4 block with its length, and the XISF spec does not define that prefix.
  • Breaking: In SER, SerHeader.byte_order: ByteOrder replaces SerHeader.little_endian. SerHeader.file_id and SerReader::from_reader are removed. SerTimestamp fields are private: use ticks(), to_unix() or to_utc(). SerHeader::frame_size and SerReader::iter_frames_range return Result. A byte-order flag of 0 now reads as little-endian, which is how capture programs write it. 0.1 wrote 1 for little-endian, so 16-bit SER files from 0.1 now decode as big-endian. SerReader::read_frame_u16 and SerReader::has_timestamps are new.
  • Add the stretch module. Its Stretch trait on Image provides three methods: stf (an automatic midtones stretch set by StfParams), mad_normalized and to_u8. Each returns a new Image with the source’s keywords and XISF properties.
  • Fix FITS reading:
    • Image::open reads the first HDU that holds an image. This includes RICE_1, GZIP_1 and GZIP_2 tile-compressed images and quantized float images. 0.1 read only the primary HDU.
    • Image::open applies BSCALE and BZERO. The standard unsigned offsets load as U16, U32 or U64. Other scaling loads as F64, and BLANK pixels in scaled data load as NaN. 0.1 applied no scaling and read BITPIX = 64 as 32-bit.
    • FitsFile::get_image_info and FitsFile::read_hdu_with_data decode compressed HDUs.
    • The header parser reads CONTINUE long strings, doubled quotes and HIERARCH names. FitsFile::get_header_value returns strings without the FITS quotes.
    • Header::get_last and Image::get_last return the last card of a repeated keyword. Scaling and WCS cards use the last card.
    • A truncated file keeps the HDUs before the damage, and FitsFile::scan_error reports the problem.
  • Fix FITS writing:
    • Image::save writes I8, U16, U32 and U64 pixels with the standard BZERO. 0.1 cast U16 to i16 without an offset, so values above 32767 read back negative.
    • Real values round-trip exactly, quotes in strings are escaped, long strings use CONTINUE, and long keyword names use HIERARCH.
    • Image::save and compressed writes emit correct DATASUM and CHECKSUM cards.
    • Every Image and AstroImage save writes a temporary file and then renames it, so a failed save leaves the target file unchanged.
    • Add Image::save_fits_compressed. AstroImage::write_fits accepts i8, u16, u32 and u64 samples.
  • Fix XISF reading and writing:
    • Reading verifies SHA-1, SHA-256 and SHA-512 block checksums. It decodes byte-shuffled codecs such as lz4+sh, and inline and embedded data blocks.
    • UInt32 images load as U32. 0.1 loaded them as wrapped I32.
    • Image.xisf_properties and XisfFile::properties return an image’s properties. Property types the crate does not decode are written back unchanged.
    • A FITS WCS is saved as XISF astrometric solution properties, and those properties load back as FITS WCS keywords.
    • Written files include the Metadata element that the spec requires.
    • Add XisfFile::image_keywords and XisfWriter::sha1_checksums.
  • Fix FITS tables: column scaling, TNULL nulls and variable-length arrays now read correctly. Read random-groups HDUs with RandomGroupsHdu::read_groups. Image::open_png reads palette images and 1-, 2- and 4-bit images, drops the alpha channel, and limits memory use to a bound set by the file length.

celestial-ephemeris

  • Breaking: ElpMpp02Moon::geocentric_position and geocentric_state return Vector3 and (Vector3, Vector3) in ICRS, in AU and AU/day. They used to return [f64; 3] and [f64; 6] in km and km/day in the mean ecliptic of J2000. geocentric_position_icrs and geocentric_state_icrs are removed. Multiply by celestial_core::constants::AU_KM for kilometres.
  • Breaking: The geocentric methods on the planets and Vsop2013Sun take the Earth’s heliocentric place as a parameter: geocentric_position(&tdb, &earth_position) and geocentric_state(&tdb, &earth_state). Compute Vsop2013Earth::new().heliocentric_state(&tdb)? once per epoch and pass it to each call.
  • Breaking: The crate root no longer re-exports Vsop2013Earth and Vsop2013Sun, and jpl no longer re-exports SpkFile and SpkSegment. Import from earth, sun and jpl::spk.
  • Breaking: SpkFile::compute_position and compute_state take &TDB in place of a Julian date f64 and return Vector3 and (Vector3, Vector3) in km and km/s. SpkSegment fields are private. Read them with body(), center(), frame(), data_type(), start() and end(), where the last two return TDB. SpkSegment::from_summary, contains_epoch, start_jd, end_jd and SpkFile::find_segment are removed.
  • Breaking: SpkError is #[non_exhaustive] and no longer implements Clone or PartialEq. Io wraps std::io::Error. The SegmentNotFound field epoch is renamed jd. The new variants are InvalidEpoch, UnsupportedType and UnsupportedFrame. SpkError converts into AstroError.
  • SPK lookups chain through the solar system barycenter, so pairs a kernel doesn’t store directly, such as MOON relative to EARTH, return a result. SpkFile::open reads the whole kernel into memory and validates every segment. Only type 2 segments in the J2000 frame can be evaluated, and other segments return an error. Add bodies::MERCURY and bodies::VENUS.
  • Every theory returns an error for an epoch outside its published range, and for NaN or infinite epochs. VSOP2013 covers -4000 to +8000, its Pluto covers 0 to +4000, and ELP/MPP02 and Vsop2013Earth cover -3000 to +3000.
  • Planet, Earth and Sun velocities come from the analytic series rates. They used to come from central differences over ±1 s.
  • Regenerate the built-in series with more terms. VSOP2013 keeps 83,780 terms, up from 24,685, and ELP/MPP02 keeps 10,754 terms. Against DE432s over 1950 to 2050, geocentric directions are within 7 to 30 mas for Mercury through Saturn, 2.3 mas for the Sun and 38 mas for the Moon. Neptune is within 0.2“, Uranus 0.8“ and Pluto 3“.
  • ElpMpp02Moon::with_de405_fit() rotates to ICRS with the DE405 fit’s own frame constants. It used to use the lunar laser ranging fit’s obliquity.
  • Drop the celestial-coords, memmap2 and chrono dependencies, and add thiserror and wide. The serde feature only enables serde in celestial-core and celestial-time.
  • In vsop2013-gen and elpmpp02-gen (feature cli), --threshold defaults to each shipped table’s cut. vsop2013-gen used to require it. elpmpp02-gen used to default to 1e-5 while the shipped table used 1e-3. Generated tables record the command that produced them.

celestial-solver

  • First release. celestial-solver plate-solves an astronomical image. It takes a celestial_images Image and a celestial_catalog Catalog, and returns the image’s WCS. The WCS is a TAN projection, with SIP distortion when the fit selects it. A solve needs a position hint and a plate scale, because the solver does not search the whole sky.
  • celestial_solver::solve::solve(&image, &catalog).run() returns a SolveResult or a SolveError. The solver reads three things from the FITS or XISF header:
    • the position hint, from the header WCS, CRVAL1/2, RA/DEC or OBJCTRA/OBJCTDEC
    • the epoch, from MJD-OBS or DATE-OBS
    • the plate scale, from FOCALLEN and XPIXSZ
  • Override header values with the builder setters hint, epoch, focal_length_mm, pixel_size_um and plate_scale_arcsec. For PNG, TIFF or other images without a header, with_metadata supplies all of these values.
  • SolveResult holds the linear WCS (wcs), the SIP model (sip), the combined fits_wcs, the matched pairs, the detected stars and log_odds. pixel_to_sky and sky_to_pixel apply the SIP distortion.
  • To store the solution, to_fits_keywords returns the solution as FITS keywords. write_into adds them to an Image, and save_with writes a new FITS or XISF file. to_xisf_properties builds XISF spline properties.
  • The solver rejects any match whose log-odds score (Lang et al. 2010) is below ln(10^9). The same inputs give the same solution on every run and with any thread count.
  • The solver accepts every pixel type that Image reads, from u8 to f64, and treats NaN pixels as blank. Catalog stars are moved by proper motion to the image epoch. SolveParams tunes detection, matching, refinement and the highest SIP order, which defaults to 4.
  • detect::find_bright_stars runs star detection on its own. annotate::Annotation draws detections and a solve overlay onto an image.
  • The image-solver binary, built with the cli feature, solves one image and prints a report. With --output it also writes the solved FITS or XISF file.