get_params_header

popurri.spectrum.get_params_header(filin, inst, headertable=None, ext=0)

Get general common parameters from header.

The general parameters are taken from the table ‘header_kws.csv’ in directory dirdata, read with read_header_kw_table.

filinstr or astropy header object (astropy.io.fits.header.Header)

FITS file from which to read the header or astropy header object (faster if header already loaded before). If it is a header object, the parameter ext is not used.

headertablepandas DataFrame, optional

Table previously read with read_header_kw_table. If None, it is read now.