PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service

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 packag...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ji, Jianghui, Tan, Dongjie, Bao, Chunhui, Huang, Xiumin, Hu, Shoucun, Dong, Yao, Wang, Su
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Ji, Jianghui
Tan, Dongjie
Bao, Chunhui
Huang, Xiumin
Hu, Shoucun
Dong, Yao
Wang, Su
description 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.
doi_str_mv 10.48550/arxiv.2310.08673
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2310_08673</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2310_08673</sourcerecordid><originalsourceid>FETCH-LOGICAL-a673-f0856b06c7e224f01ca2c7f0e749ee9a20729eae34db53de406eff85cfc92c8d3</originalsourceid><addsrcrecordid>eNotjz1Pw0AQRK-hQIEfQMWWpHC43PnjTGdFGJCCbMnprc15N7GIbXQ-IvzvMYFqRlO80RPibi1XoYki-Yjuuz2vlJ4HaeJEX4uqnN7HgvEJMignfxx6KNF-4IGABwf-SFB57Bt0zQgDQ_419456jyfIRu-GfugmeKiKPFtCRe7cWroRV4ynkW7_cyF2-fNu8xpsi5e3TbYNcL4OWJoo3svYJqRUyHJtUdmEJSVhSpSikolKCUmHzT7SDYUyJmYTWbapsqbRC3H_h71Y1Z-u7dBN9a9dfbHTP0eRSc8</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service</title><source>arXiv.org</source><creator>Ji, Jianghui ; Tan, Dongjie ; Bao, Chunhui ; Huang, Xiumin ; Hu, Shoucun ; Dong, Yao ; Wang, Su</creator><creatorcontrib>Ji, Jianghui ; Tan, Dongjie ; Bao, Chunhui ; Huang, Xiumin ; Hu, Shoucun ; Dong, Yao ; Wang, Su</creatorcontrib><description>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.</description><identifier>DOI: 10.48550/arxiv.2310.08673</identifier><language>eng</language><subject>Physics - Astrophysics of Galaxies ; Physics - Earth and Planetary Astrophysics ; Physics - Instrumentation and Methods for Astrophysics ; Physics - Solar and Stellar Astrophysics</subject><creationdate>2023-10</creationdate><rights>http://arxiv.org/licenses/nonexclusive-distrib/1.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,885</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2310.08673$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2310.08673$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Ji, Jianghui</creatorcontrib><creatorcontrib>Tan, Dongjie</creatorcontrib><creatorcontrib>Bao, Chunhui</creatorcontrib><creatorcontrib>Huang, Xiumin</creatorcontrib><creatorcontrib>Hu, Shoucun</creatorcontrib><creatorcontrib>Dong, Yao</creatorcontrib><creatorcontrib>Wang, Su</creatorcontrib><title>PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service</title><description>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.</description><subject>Physics - Astrophysics of Galaxies</subject><subject>Physics - Earth and Planetary Astrophysics</subject><subject>Physics - Instrumentation and Methods for Astrophysics</subject><subject>Physics - Solar and Stellar Astrophysics</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotjz1Pw0AQRK-hQIEfQMWWpHC43PnjTGdFGJCCbMnprc15N7GIbXQ-IvzvMYFqRlO80RPibi1XoYki-Yjuuz2vlJ4HaeJEX4uqnN7HgvEJMignfxx6KNF-4IGABwf-SFB57Bt0zQgDQ_419456jyfIRu-GfugmeKiKPFtCRe7cWroRV4ynkW7_cyF2-fNu8xpsi5e3TbYNcL4OWJoo3svYJqRUyHJtUdmEJSVhSpSikolKCUmHzT7SDYUyJmYTWbapsqbRC3H_h71Y1Z-u7dBN9a9dfbHTP0eRSc8</recordid><startdate>20231012</startdate><enddate>20231012</enddate><creator>Ji, Jianghui</creator><creator>Tan, Dongjie</creator><creator>Bao, Chunhui</creator><creator>Huang, Xiumin</creator><creator>Hu, Shoucun</creator><creator>Dong, Yao</creator><creator>Wang, Su</creator><scope>GOX</scope></search><sort><creationdate>20231012</creationdate><title>PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service</title><author>Ji, Jianghui ; Tan, Dongjie ; Bao, Chunhui ; Huang, Xiumin ; Hu, Shoucun ; Dong, Yao ; Wang, Su</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a673-f0856b06c7e224f01ca2c7f0e749ee9a20729eae34db53de406eff85cfc92c8d3</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Physics - Astrophysics of Galaxies</topic><topic>Physics - Earth and Planetary Astrophysics</topic><topic>Physics - Instrumentation and Methods for Astrophysics</topic><topic>Physics - Solar and Stellar Astrophysics</topic><toplevel>online_resources</toplevel><creatorcontrib>Ji, Jianghui</creatorcontrib><creatorcontrib>Tan, Dongjie</creatorcontrib><creatorcontrib>Bao, Chunhui</creatorcontrib><creatorcontrib>Huang, Xiumin</creatorcontrib><creatorcontrib>Hu, Shoucun</creatorcontrib><creatorcontrib>Dong, Yao</creatorcontrib><creatorcontrib>Wang, Su</creatorcontrib><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Ji, Jianghui</au><au>Tan, Dongjie</au><au>Bao, Chunhui</au><au>Huang, Xiumin</au><au>Hu, Shoucun</au><au>Dong, Yao</au><au>Wang, Su</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service</atitle><date>2023-10-12</date><risdate>2023</risdate><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. 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.</abstract><doi>10.48550/arxiv.2310.08673</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2310.08673
ispartof
issn
language eng
recordid cdi_arxiv_primary_2310_08673
source arXiv.org
subjects Physics - Astrophysics of Galaxies
Physics - Earth and Planetary Astrophysics
Physics - Instrumentation and Methods for Astrophysics
Physics - Solar and Stellar Astrophysics
title PyMsOfa: A Python Package for the Standards of Fundamental Astronomy (SOFA) Service
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-24T13%3A38%3A47IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=PyMsOfa:%20A%20Python%20Package%20for%20the%20Standards%20of%20Fundamental%20Astronomy%20(SOFA)%20Service&rft.au=Ji,%20Jianghui&rft.date=2023-10-12&rft_id=info:doi/10.48550/arxiv.2310.08673&rft_dat=%3Carxiv_GOX%3E2310_08673%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true