astropy Python天文学和天体物理学核心库

astropy简介

astropy,Python第三方库,包含了一些使用Python来处理天文学和天体物理学数据所需的大部分核心功能和一些常见工具。

astropy应用实例

import astropy.coordinates as coord
import astropy.units as u
#使用星系中心坐标的最新约定
coord.galactocentric_frame_defaults.set('latest')
#使用恒星HD 155967的坐标和重心径向速度
icrs = coord.SkyCoord(ra=258.58356362*u.deg, dec=14.55255619*u.deg,
                      radial_velocity=-16.1*u.km/u.s, frame='icrs')

astropy Github统计数据

BSD-3-Clause license

Github 4k stars

astropy安装命令

pip install astropy 或 conda install astropy

Python版本要求

astropy6.0.0 Python 3.9 or later

免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。


行业导航 / Python指南 :
























Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.