PyMsOfa:基础天文学标准(SOFA)服务的Python包
PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service
AI总结:
PyMsOfa是一个Python包,通过ctypes、cffi和纯Python三种方式完整实现SOFA服务的247个函数,与原始测试一致,适用于CHES任务及黑洞、暗物质等天体测量领域。
摘要:
基础天文学标准(SOFA)是国际天文学联合会(IAU)提供的一项服务,该服务提供用于天文计算的算法和软件,分别以FORTRAN 77和ANSI C两种版本发布。在本工作中,我们通过三种方式实现了用于SOFA服务的Python包PyMsOfa:(1)基于Python外部函数库(ctypes)的Python包装包,(2)使用Python调用C代码的外部函数接口(cffi)的Python包装包,以及(3)直接从SOFA子程序用纯Python代码编写的Python包。PyMsOfa包已完整实现了原始SOFA例程的247个函数。此外,PyMsOfa还经过了广泛测试,与原始SOFA给出的测试示例完全一致。该Python包不仅适用于近邻宜居系外行星巡天(CHES)任务(Ji等人,2022)中宜居行星的天体测量探测,也适用于与天体测量计算相关的黑洞和暗物质等前沿主题及其他领域。源代码可通过https://github.com/CHES2023/PyMsOfa获取。
英文摘要:
The Standards of Fundamental Astronomy (SOFA) is a service provided by the International Astronomical Union (IAU) that offers algorithms and software for astronomical calculations, which was released in two versions by FORTRAN 77 and ANSI C, respectively. In this work, we implement the python package PyMsOfa for SOFA service by three ways: (1) a python wrapper package based on a foreign function library for Python (ctypes), (2) a python wrapper package with the foreign function interface for Python calling C code (cffi), and (3) a python package directly written in pure python codes from SOFA subroutines. The package PyMsOfa has fully implemented 247 functions of the original SOFA routines. In addition, PyMsOfa is also extensively examined, which is exactly consistent with those test examples given by the original SOFA. This python package can be suitable to not only the astrometric detection of habitable planets of the Closeby Habitable Exoplanet Survey (CHES) mission (Ji et al. 2022), but also for the frontiers themes of black holes and dark matter related to astrometric calculations and other fields. The source codes are available via https://github.com/CHES2023/PyMsOfa.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。