Cfitsio Toolkit - matlab.io.fits.getColName
- :
[colnum,colname]
=getColName(file, template)
- :
[colnum,colname]
=getColName(file, template, casesens)
Get column name.
This is the equivalent of the cfitsio fits_get_colname function.
Inputs
file - opened fits file.
template - template string for matching column name.
casesens - boolean whether to be case sensitive in match.
Outputs
colnum - column number of match.
colname - column name of match.
Examples
import_fits; filename = file_in_loadpath("demos/tst0012.fits"); fd = fits.openFile(filename); fits.movAbsHDU(fd,2); [colnum, colname] = fits.getColName(fd,"C*"); # returned 3, "COUNTS" fits.closeFile(fd);