getheader

sofia_redux.toolkit.utilities.fits.getheader(filename, hdu=0, verbose=True)[source]

Returns the header of a FITS file

Uses robust_read to extract the header.

Parameters:
filenamestr

path to a FITS file

hduint, optional

Header Data Unit. Primary HDU is 0 (default)

verbosebool, optional

If True, output log messages on error

Returns:
astropy.io.fits.header.Header