What problem does it solve?
Astropy helps you correctly handle astronomy-specific calculations and file formats so you can avoid unit mistakes, coordinate conversion errors, and brittle data parsing.
Core Features & Use Cases
- Coordinate transformations and matching: Convert between celestial reference frames (e.g., ICRS to Galactic), compute separations, and cross-match catalogs.
- Unit-aware physics calculations: Represent physical quantities with units, convert reliably (e.g., parsecs to kilometers), and apply domain-specific equivalencies (spectral, Doppler, parallax).
- FITS and table workflows: Read and write FITS images and tables, manipulate headers, and join/filter datasets for analysis.
- Cosmology and precise time: Compute cosmological distances, ages, and times using standard cosmological models, while converting between time scales and formats.
- WCS for imaging: Transform between pixel and world coordinates using WCS metadata from FITS headers.
Quick Start
Use the astropy skill to convert right ascension/declination coordinates from ICRS to Galactic for a given sky position and return the transformed angles in degrees.