Every astronomical observation depends on precise calculations: converting between coordinate systems, accounting for Earth’s rotation, predicting planetary positions, and transforming between time standards. These fundamental computations form the backbone of everything from telescope pointing to exoplanet discovery, yet they’re notoriously complex to implement correctly.

PyERFA brings the Essential Routines for Fundamental Astronomy directly to Python developers through clean NumPy universal functions. Built on the International Astronomical Union’s official SOFA algorithms, it handles the mathematical heavy lifting for astrometry, coordinate transformations, time conversions, and planetary ephemerides. Whether you’re processing single observations or massive survey datasets, PyERFA’s vectorized operations scale seamlessly from scalar inputs to multi-dimensional arrays, maintaining the numerical precision that astronomical research demands.

Originally developed within the Astropy ecosystem and now maintained as a standalone package, PyERFA powers professional astronomy software used at observatories and research institutions globally. Its robust testing and adherence to IAU standards make it the go-to foundation for anyone building astronomical analysis tools, from graduate students developing thesis projects to teams processing data from space missions.


Stars: 45
💻 Language: Python
🔗 Repository: liberfa/pyerfa