【天文画像解析】IDLでfitsファイルを開く

pythonと比較できるようにIDLでfitsファイルを開く方法も書いときます。

状況

/home/sfr/ngc4303というディレクトリにあるngc4303-fd-int.fitsという名前のファイルをIDLで読み込みたい場合。

コード

data_dir=/home/sfr/ngc4303 
fuv_img=mrdfits(data_dir+'ngc4303-fd-int.fits',0,fuv_hdr)

;fuv_imgが画像データ
;fuv_hdrがヘッダー

コメント

このブログの人気の投稿

TypeError: ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

overleafで画像が表示されない!

エラー: ""C:\U" で始まる文字列の中で 8 進文字なしに '\U' が使われています