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);