我試圖加載到內存中的幾個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