MRDFITS: ERROR - Extension past EOF

症状

IDLのmrdfitsをしたいときのエラー

状況

image=mrdfits('image.fits',1,h)

解決策

1→0に変えたらエラーが出なくなって、fits読み込めた。

追記
fitsは階層構造になっていて、0にimageが入っていたり、空だったり、1にimageが入っていたり、
2にrmsマップが入っていたり云々するみたい。
読み込む階層を指定してるらしい。

コメント

このブログの人気の投稿

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' が使われています