Extract data from fits-file

1 回表示 (過去 30 日間)
Mikael Flodin
Mikael Flodin 2016 年 2 月 7 日
回答済み: Walter Roberson 2016 年 2 月 7 日
I want to read the binary data of a fits file. The binary part consists of 23 columns and 1403695 rows. I've tried for instance:
>>bindata=fitsread('filename.fits','binarydata'),
but the only thing I get is a 1x23-vector containing: "[1403695x1 double]". How can I extract the actual data from the file?

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 2 月 7 日
Your result is a cell array, one element per column. bindata{17} would be the 17th column for example.
You might want to use
binarray = cell2mat(bindata);
to get an N x 23 numeric array, provided all of the columns are the same data type.

カテゴリ

Help Center および File ExchangeLive Scripts and Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by