基础天文学标准(SOFA)服务的Python包

IF 1.8 4区 物理与天体物理 Q3 ASTRONOMY & ASTROPHYSICS
Jianghui Ji, Dongjie Tan, Chunhui Bao, Xiumin Huang, Shoucun HU, Yao Dong, Su Wang
{"title":"基础天文学标准(SOFA)服务的Python包","authors":"Jianghui Ji, Dongjie Tan, Chunhui Bao, Xiumin Huang, Shoucun HU, Yao Dong, Su Wang","doi":"10.1088/1674-4527/ad0499","DOIUrl":null,"url":null,"abstract":"Abstract 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. \\textbf{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 \\citep{ji2022ches}, 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.","PeriodicalId":54494,"journal":{"name":"Research in Astronomy and Astrophysics","volume":"30 1","pages":"0"},"PeriodicalIF":1.8000,"publicationDate":"2023-10-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service\",\"authors\":\"Jianghui Ji, Dongjie Tan, Chunhui Bao, Xiumin Huang, Shoucun HU, Yao Dong, Su Wang\",\"doi\":\"10.1088/1674-4527/ad0499\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Abstract 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. \\\\textbf{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 \\\\citep{ji2022ches}, 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.\",\"PeriodicalId\":54494,\"journal\":{\"name\":\"Research in Astronomy and Astrophysics\",\"volume\":\"30 1\",\"pages\":\"0\"},\"PeriodicalIF\":1.8000,\"publicationDate\":\"2023-10-18\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Research in Astronomy and Astrophysics\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1088/1674-4527/ad0499\",\"RegionNum\":4,\"RegionCategory\":\"物理与天体物理\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"ASTRONOMY & ASTROPHYSICS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Research in Astronomy and Astrophysics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1088/1674-4527/ad0499","RegionNum":4,"RegionCategory":"物理与天体物理","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"ASTRONOMY & ASTROPHYSICS","Score":null,"Total":0}
引用次数: 0

摘要

基础天文学标准(SOFA)是国际天文学联合会(IAU)提供的天文计算算法和软件服务,分别以FORTRAN 77和ANSI C语言发布了两个版本。\textbf{在这项工作中,我们通过三种方式实现了用于SOFA服务的python包PyMsOfa:(1)基于python外部函数库的python包装器包(ctypes),(2)带有python调用C代码的外部函数接口的python包装器包(cffi),以及(3)直接用来自SOFA子程序的纯python代码编写的python包。}包PyMsOfa完全实现了原始SOFA例程的247个功能。此外,还对PyMsOfa进行了广泛的检查,这与原SOFA给出的测试示例完全一致。该python包不仅可以适用于近距离宜居系外行星调查(CHES)任务(\citep{ji2022ches})中可居住行星的天体测量探测,还可以适用于与天体测量计算相关的黑洞和暗物质等前沿主题。源代码可通过https://github.com/CHES2023/PyMsOfa获得。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service
Abstract 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. \textbf{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 \citep{ji2022ches}, 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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Research in Astronomy and Astrophysics
Research in Astronomy and Astrophysics 地学天文-天文与天体物理
CiteScore
3.20
自引率
16.70%
发文量
2599
审稿时长
6.0 months
期刊介绍: Research in Astronomy and Astrophysics (RAA) is an international journal publishing original research papers and reviews across all branches of astronomy and astrophysics, with a particular interest in the following topics: -large-scale structure of universe formation and evolution of galaxies- high-energy and cataclysmic processes in astrophysics- formation and evolution of stars- astrogeodynamics- solar magnetic activity and heliogeospace environments- dynamics of celestial bodies in the solar system and artificial bodies- space observation and exploration- new astronomical techniques and methods
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信