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
- Synthetic catalog generation for testing
- Python interoperability for comparing results with Skyfield (optional)
Installation
Example
use Time;
use HipparcosCatalog;
use StarCatalog;
Command Line Tool
The package includes a simple command-line tool for analyzing star catalogs:
# Basic catalog statistics
# Filter a catalog by magnitude and save it
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.