Is there a routine that writes 3 dimensional arrays into a fits file?
1 回表示 (過去 30 日間)
古いコメントを表示
I am looking for a routine which writes saves a three dimensional array into a fits file
0 件のコメント
回答 (1 件)
Kiran
2016 年 2 月 9 日
Create a FITS file with three images constructed from the channels of an RGB image.
X = imread('ngc6543a.jpg');
R = X(:,:,1); G = X(:,:,2); B = X(:,:,3);
fitswrite(R,'myfile.fits');
fitswrite(G,'myfile.fits','writemode','append');
fitswrite(B,'myfile.fits','writemode','append');
fitsdisp('myfile.fits');
Refer the following documentation:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Interpolation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!