Main Content

matlab.io.fits.getNumRows

テーブル内の行数

構文

nrows = getNumRows(fptr)

説明

nrows = getNumRows(fptr) は、現在の FITS テーブル内の行数を取得します。この関数は、CFITSIO ライブラリ C API の関数 fits_get_num_rowsll (ffgnrwll) に相当します。

import matlab.io.*
fptr = fits.openFile('tst0012.fits');
fits.movAbsHDU(fptr,2);
ncols = fits.getNumCols(fptr);
nrows = fits.getNumRows(fptr);
fits.closeFile(fptr);