Number of rows in table
nrows = getNumRows(fptr)
nrows = getNumRows(fptr)
gets the number
of rows in the current FITS table. This function corresponds to the fits_get_num_rowsll
(ffgnrwll)
function in the CFITSIO library C API.
import matlab.io.* fptr = fits.openFile('tst0012.fits'); fits.movAbsHDU(fptr,2); ncols = fits.getNumCols(fptr); nrows = fits.getNumRows(fptr); fits.closeFile(fptr);