4

我使用下面的 python 脚本从拟合文件中读取世界坐标系 (WCS) 并绘制它。

from astropy.io import fits
import matplotlib.pyplot as plt
from astropy.wcs import WCS

hdu = fits.open('file.fits')
header = hdu[0].header
data = hdu[0].data
wcs = WCS(header, naxis=2)

plt.figure().add_subplot(1,1,1, projection=wcs)
plt.imshow(data)
plt.grid()
plt.show()

但是,上面的脚本将图像投影在 RA 和 DEC 中。我想知道是否有办法让它以方位角和仰角显示图像。

谢谢。

4

0 回答 0