Starfield
Astronomical data reduction toolkit with star catalogs, coordinate systems, and star finding algorithms inspired by Skyfield.
Features
- Celestial coordinate transformations
- Star catalog management (Hipparcos, GAIA)
- Precession, nutation, and earth rotation calculations
- Time and date handling for astronomical applications
- Planetary constants: NAIF text kernel parsing plus an embedded IAU 2015 table of radii and rotational elements
- Body-fixed reference frames from the IAU rotational elements, matching SPICE
IAU_MARS,IAU_MOONand the rest - Synthetic catalog generation for testing
- Python interoperability for comparing results with Skyfield (optional)
Installation
Example
use Time;
use HipparcosCatalog;
use StarCatalog;
Command Line Tools
The package includes command-line tools for working with star catalogs:
# Basic catalog statistics
# Filter a catalog by magnitude and save it
# Download Gaia catalog data
# Data files resolve through the organisation's pull-through cache; see
# docs/datastore.md for STARFIELD_MIRROR / STARFIELD_ALLOW_UPSTREAM.
# Filter Gaia data by magnitude and export to binary format
Python Interoperability
Starfield provides optional Python interoperability for comparing results with the Python Skyfield library:
# Enable Python comparison tests
# Run example comparing Rust calculations with Skyfield
Example code using the Python bridge:
// This requires the python-tests feature to be enabled
use ;
use TryFrom;
License
This project is licensed under the MIT License - see the LICENSE file for details.