我想繪製擬合與aplpy文件適合圖像與aplpy但我得到以下錯誤: INFO: The WCS transformation has more axes (3) than the image it is associated with (2) [astropy.wcs.wcs]
ERROR: IndexError: list index out of range [aplpy.wcs_util]
我有一個包含二進制表的60GB FITS文件。我想一次讀取(並處理)這個表一行/入口/行/塊*。 (*我不能確定正確的命名) 我使用pyfits什麼,我想這樣做可以歸結爲簡單: import pyfits
hdulist = = pyfits.open("file.fits")
# the binary table has to be in the 2nd extension
# henc
我正試圖從python腳本中獲取給定像素的物理天空座標。我想使用astropy的WCS,但我會在python中做任何事情。 我已經嘗試了這兩個代碼片段。 from astropy.io import fits
from astropy.wcs import WCS
def astropymethod1(img):
# from http://astropy.readthedocs.