For some reason I can't read this FITS file...or any FITS files. I keep getting an error that says index out of range. And when I tried removing the "bintable" input I get an empty data variable. I attached the FITS file in a google drive link cause its more than 5 MB. I hope someone can help here.
data = fitsread("emm_exi_l2a_20210831T234418_0101_xos1_f437_r_v04-01.fits", "bintable")

5 件のコメント

Rik
Rik 2022 年 6 月 3 日
filename=websave('file.fits','https://drive.google.com/u/0/uc?id=1QRCeI7QCWqcRKM1YhoU-D4IR2sfvkv1k&export=download');
data=fitsread(filename)
Warning: FITSREAD returned empty because the primary HDU of this file was empty. Type 'help fitsread' to see an example which uses the EXTNAME option to read extension data.
data = []
I have never worked with this type of data, so I don't know how obvious this message is. Did you follow this advice?
Ali Almakhmari
Ali Almakhmari 2022 年 6 月 3 日
Yes. And I still get the index out of range error.
Walter Roberson
Walter Roberson 2022 年 6 月 3 日
https://stackoverflow.com/questions/20844385/pyfits-read-compressed-fits-file
Ali Almakhmari
Ali Almakhmari 2022 年 6 月 3 日
This is for a compressed file, and I don’t think mine is. Also, this requires Python but I am trying to do all of this in MATLAB.
Jan
Jan 2022 年 6 月 3 日
@Ali Almakhmari: Please post a copy of the complete error message. Why do you get an error but Rik does not?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Data Import and Analysis についてさらに検索

製品

リリース

R2019a

質問済み:

2022 年 6 月 3 日

コメント済み:

Jan
2022 年 6 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by