我试图加载到内存中的几个2 000 FITS利用astropy.io.fits: def readfits(filename):
with fits.open(filename) as ft:
# the fits contain a single HDU
data = ft[0].data
return data
data_sci = []
fo
我尝试读取世界坐标系(WCS)从使用satrapy这个代码FITS文件: from astropy.wcs import WCS
from astropy.io import fits
data = 'file.fits'
hdu = fits.open(data)
w = WCS(hdu[0].header)
我得到的错误: WARNING: FITSFixedWarning: R