fcolpar -- Write the column number corresponding to an input filename and column name, to the parameter file.
fcolpar fitsfile[ext#] colname
This task reads the column number corresponding to an input filename and column name and writes it to the 'colname' parameter in the parameter file (0 if the column was not found).
Read the column number corresponding to the column name COLUMN1 in the 1st extension in the FITS file called 'myfile.fits'.
fcolpar myfile.fits[1] COLUMN1
fkeypar. fv, the interactive FITS file editor, can also be used to obtain the column numbers of named columns.