Skip to content
DraconiticResearch
Search Sources API
203,234 studies31 sourcesUpdated 52 min ago
PreprintarXiv licencearXiv

PyMsOfa 2.0: A Pure-Python Implementation of the IAU Standards of Fundamental Astronomy Service

Abstract

Astrometric calculations require authoritative algorithms so that every result is correct and reproducible. The Standards of Fundamental Astronomy (SOFA) service of the International Astronomical Union (IAU) provides such algorithms, officially released only in Fortran 77 and ANSI C. In an earlier paper we presented the first version of PyMsOfa, a Python package wrapping the SOFA C library. Here we present PyMsOfa 2.0, which re-implements the complete SOFA library in pure Python with NumPy. All 247 official SOFA routines are ported directly to Python, requiring no compilation of any external C library and running identically on Linux, Windows, and macOS. The routines operate on NumPy arrays, so arguments can be processed in batch, which is convenient for survey pipelines and Monte Carlo simulations. The package also provides an extension module with validated models not yet part of the official SOFA release, such as the improved precession--nutation model IAU 2006J2/2000AR26. The reimplementation reproduces the official SOFA algorithms: all constants, series, and coefficients are taken unchanged from the SOFA source files, and routine names differ only by the pym prefix. We verify every routine against the official SOFA C release: most reproduce the C results to machine precision, the remainder within the accuracy tolerance stated in the SOFA documentation. The package has been applied to Gaia astrometric reduction and used in astrometric studies of the Closeby Habitable Exoplanet Survey (CHES) mission, and is available through PyPI, GitHub, and Zenodo.

Related

  1. Transitioning from ADS to SciX to Serve 21st Century Astronomy
    Jennifer Lynn Bartlett, Suze Kundu, Alberto Accomazzi +1
    arXivPreprintCC BY 4.0Full textInstrumentation & methodsarXiv
  2. From Axion Detection to Dark Matter Astronomy
    Jae Hyeok Chang, Stefano Profumo
    arXivPreprintCC BY 4.0Full textCosmologyHigh-energy & particle physicsarXiv
  3. Neutrino Astronomy at High Energies - An Experimental Review
    Christian Spiering
    arXivPreprintCC0Full textHigh-energy astrophysicsarXiv
  4. The Promise of Gravitational-Wave Astronomy
    Parameswaran Ajith
    arXivPreprintCC BY 4.0Full textCosmologyHigh-energy astrophysicsarXiv
  5. Institutional broadening of the Japanese astronomy and astrophysics research community during 1996-2025
    Hideaki Fujiwara
    arXivPreprintarXiv licenceFull textInstrumentation & methodsarXiv
BibTeX
@misc{tan2026pymsofa,
  title = {{PyMsOfa 2.0: A Pure-Python Implementation of the IAU Standards of Fundamental Astronomy Service}},
  author = {Dongjie Tan and Jianghui Ji and Jiacheng Liu},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.38410},
  eprint = {2610.38410},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.38410},
}
RIS
TY  - UNPB
TI  - PyMsOfa 2.0: A Pure-Python Implementation of the IAU Standards of Fundamental Astronomy Service
AU  - Dongjie Tan
AU  - Jianghui Ji
AU  - Jiacheng Liu
PY  - 2026
DA  - 2026/10/28
PB  - arXiv
DO  - 10.48550/arxiv.2610.38410
UR  - https://arxiv.org/abs/2610.38410
AB  - Astrometric calculations require authoritative algorithms so that every result is correct and reproducible. The Standards of Fundamental Astronomy (SOFA) service of the International Astronomical Union (IAU) provides such algorithms, officially released only in Fortran 77 and ANSI C. In an earlier paper we presented the first version of PyMsOfa, a Python package wrapping the SOFA C library. Here we present PyMsOfa 2.0, which re-implements the complete SOFA library in pure Python with NumPy. All 247 official SOFA routines are ported directly to Python, requiring no compilation of any external C library and running identically on Linux, Windows, and macOS. The routines operate on NumPy arrays, so arguments can be processed in batch, which is convenient for survey pipelines and Monte Carlo simulations. The package also provides an extension module with validated models not yet part of the official SOFA release, such as the improved precession--nutation model IAU 2006_J_2/2000A_R26. The reimplementation reproduces the official SOFA algorithms: all constants, series, and coefficients are taken unchanged from the SOFA source files, and routine names differ only by the pym prefix. We verify every routine against the official SOFA C release: most reproduce the C results to machine precision, the remainder within the accuracy tolerance stated in the SOFA documentation. The package has been applied to Gaia astrometric reduction and used in astrometric studies of the Closeby Habitable Exoplanet Survey (CHES) mission, and is available through PyPI, GitHub, and Zenodo.
ER  -