我試圖打開一個大的IDL產生的擬合數據立方體(159,2,4096,4096):發生 In [37]: hdulist = fits.open('/randpath/randname1.fits')
In [38]: hdulist.info()
Filename: /randpath/randname1.fits
No. Name Type Cards Dimensions For
適合files (不必登錄,繼續查看和下載)。 不相關,據我可以告訴(糾正我,如果我錯了): Find physical coordinates of a pixel in a fits file with python 重現: from astropy.io import fits
from astropy.wcs import WCS
ev=fits.open('sw00032188013
嘗試保存astropy使用astroquery檢索到FITS文件時出現錯誤。在某些情況下,它抱怨一些關鍵字的描述太長。 writeto()函數似乎有一個output_verify參數來避免這種問題,但我無法找到如何將它傳遞給write()函數?它存在嗎? 這裏是我的代碼: import astropy.units as u
from astroquery.vizier import Vizier
我想交換的兩個Python表中的行,如 In [15]: print t2
x y z
---- ---- ----
20.0 30.0 40.0
50.0 60.0 70.0
80.0 90.0 99.0
In [16]: print t1
a b c
--- --- ---
1.0 2.0 3.0