python-skyfield:Python的优雅天文学

时间:2021-04-29 21:46:50
【文件属性】:
文件名称:python-skyfield:Python的优雅天文学
文件大小:81.48MB
文件格式:ZIP
更新时间:2021-04-29 21:46:50
Python 欢迎使用Skyfield存储库 Skyfield是一个纯Python天文软件包,与Python 2和3兼容,并且可以轻松生成行星和地球卫星的高精度研究级位置。 from skyfield . api import load planets = load ( 'de421.bsp' ) earth , mars = planets [ 'earth' ], planets [ 'mars' ] ts = load . timescale () t = ts . now () position = earth . at ( t ). observe ( mars ) ra , dec , distance = position . radec () print ( ra ) print ( dec ) print ( distance ) 结果: 10h 47m 56.24s +09de

网友评论