示例数据的天体坐标系投影图是什么样的?让我用astropy一探究竟。
SkyCoord类以及Astropy库的units模块(用于处理单位)
from astropy.coordinates import SkyCoord
import astropy.units as u ...
# 创建天球坐标对象
dec = data['combined_dec'] * u.deg
ra = data['combined_ra'] * u.deg
c ...
)
ax = fig.add_subplot(111, projection='mollweide')
# 绘制散点图
ax.scatter(c.ra.wrap_at(180* u.deg ...