Main Content

matlab.io.fits.getColType

スケーリングされた列のデータ型、繰り返し値、幅

構文

[dtype,repeat,width] = getColType(fptr,colnum)

説明

[dtype,repeat,width] = getColType(fptr,colnum) は、列のデータ型、ベクトルの繰り返し値および幅 (バイト単位) を ASCII またはバイナリ テーブルで返します。

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

2 番目の HDU の 'FLUX' 列に関する情報を取得します。

import matlab.io.*
fptr = fits.openFile('tst0012.fits');
fits.movAbsHDU(fptr,2);
[dtype,repeat,width] = fits.getColType(fptr,5);
fits.closeFile(fptr);