フィルターのクリア

Select multiple frames from a single fits file

3 ビュー (過去 30 日間)
Kiruthiga Sekar
Kiruthiga Sekar 2019 年 4 月 17 日
コメント済み: Kiruthiga Sekar 2019 年 4 月 17 日
Hi,
I have a csv file and a fits file, I need to select multiple frames from the fits file based on the non-zero indices of a csv file. In the attached csv file, I need to select the 4th and 7th frame from the fits file, as it contains the non-zero values.Can someone help?
TIA

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 4 月 17 日
vals = csvread('Book4.csv');
frame_numbers = find(vals ~=0);
num_frame = length(frame_numbers);
frame_data = cell(num_frame,1);
for K = 1 : num_frame
frame_data{K} = fitsread('AppropriateFilenameGoesHere.fits', 'image', frame_numbers(K));
end
  5 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 17 日
Please show the content of the finfo variable .
Kiruthiga Sekar
Kiruthiga Sekar 2019 年 4 月 17 日
It is a single file with 2600 frames.

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

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by