Main Content

matlab.io.fits.writeComment

COMMENT キーワードの CHU への書き込みまたは追加

構文

writeComment(fptr,comment)

説明

writeComment(fptr,comment) は、COMMENT キーワードを CHU に書き込みまたは追加します。comment キーワード。文字ベクトルまたは string スカラーとして指定します。文字列が 70 文字より長い場合、複数のキーワードにまたがって継続されます。

この関数は、CFITSIO ライブラリ C API の関数 fits_write_comment (ffpcom) に相当します。

import matlab.io.*
fptr = fits.createFile('myfile.fits');
fits.createImg(fptr,'byte_img',[100 200]);
fits.writeComment(fptr,'this is a comment');
fits.writeComment(fptr,'this is another comment');
fits.closeFile(fptr);
fitsdisp('myfile.fits','mode','full');