Skip to main content

a Python package for the Standards of Fundamental Astronomy (SOFA) service

Project description

This package is a Python package for the Standards of Fundamental Astronomy (SOFA) service of the International Astronomical Union (IAU). It implements the python package PyMsOfa for SOFA service in three ways:

  1. PyMsOfa.ctypes : a python wrapper package based on a foreign function library for Python ,

  2. PyMsOfa.cffi : a python wrapper package with the foreign function interface for Python calling C code ,

  3. PyMsOfa.python : a python package directly written in pure python codes from SOFA subroutines.

Attention : In Microsoft Windows, the PyMsOfa.ctypes module and the PyMsOfa.cffi module can’t be used after installing them in pypi, but they can be installed and used by github.

It implements all 247 functions in the SOFA service and is based on the latest version released on Oct 11, 2023.

This Python package can be suitable for the astrometric detection of habitable planets of the Closeby Habitable Exoplanet Survey (CHES ) mission and for the frontier themes of black holes and dark matter related to astrometric calculations and other fields.

PyMsOfa is a Python module for accessing International Astronomical Union’s SOFA library from Python. SOFA (Standards of Fundamental Astronomy) is a set of algorithms and procedures that implement standard models used in fundamental astronomy.

PyMsOfa is not a part of SOFA routines but a Python package for the SOFA C library. Thus, no calculations are made into the PyMsOfa package based on ctypes and cffi interface, which are all delegated to the underlying SOFA C library.

PyMsOfa is neither distributed, supported nor endorsed by the International Astronomical Union. In addition to PyMsOfa’s license, any use of this module should comply with SOFA’s license and terms of use. Especially, but not exclusively, any published work or commercial products including results achieved by using PyMsOfa shall acknowledge that the SOFA software was used to obtain those results.

To cite PyMsOfa in publications use:

> 1. Ji, Jiang-Hui, Tan, Dong-jie, Bao, Chun-hui, Huang, Xiu-min, Hu, Shoucun, Dong, Yao, Wang, Su. 2023, PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service, Research in Astronomy and Astrophysics, 23, 125015, doi:10.1088/1674-4527/ad0499

> 2. Ji, Jiang-Hui, Li, Hai-Tao, Zhang, Jun-Bo, Fang, Liang, Li, Dong, Wang, Su, Cao, Yang, Deng, Lei, Li, Bao-Quan, Xian, Hao, Gao, Xiao-Dong, Zhang, Ang, Li, Fei, Liu, Jia-Cheng, Qi, Zhao-Xiang, Jin, Sheng, Liu, Ya-Ning, Chen, Guo, Li, Ming-Tao, Dong, Yao, Zhu, Zi, and CHES Consortium. 2022, CHES: A Space-borne Astrometric Mission for the Detection of Habitable Planets of the Nearby Solar-type Stars, Research in Astronomy and Astrophysics, 22, 072003, doi:10.1088/1674-4527/ac77e4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyMsOfa-1.1.6.tar.gz (519.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyMsOfa-1.1.6-cp39-cp39-win_amd64.whl (266.9 kB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file PyMsOfa-1.1.6.tar.gz.

File metadata

  • Download URL: PyMsOfa-1.1.6.tar.gz
  • Upload date:
  • Size: 519.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for PyMsOfa-1.1.6.tar.gz
Algorithm Hash digest
SHA256 bde331b83bac587cd20126a5e77b2fda0955f5598abb7aa68390db21970b05b1
MD5 75ae90686c8640d17ba9efd24f124b31
BLAKE2b-256 48b1b29dda360bd38a8b5377d60e0974f3bd932957dcb0a1815b5d88ebc9ad37

See more details on using hashes here.

File details

Details for the file PyMsOfa-1.1.6-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: PyMsOfa-1.1.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 266.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for PyMsOfa-1.1.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 edc82f062d230652542b3c4c41c5b09a708a6af9888acf5198de1f4239b2065e
MD5 97378d94381e69c72982975c141b4896
BLAKE2b-256 d66c18bf08c79d8eaf89469f3fb6ba55338c15e42665c4d21ec390bf2457345b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page