gethdul

sofia_redux.toolkit.utilities.fits.gethdul(filename, verbose=True)[source]

Returns the HDUList from a FITS file

Performs a few additional sanity checks

Parameters:
filenamestr or HDUList or array of HDU

Path to a FITS file

verbosebool, optional

If True, output log messages on error.

Returns:
astropy.io.fits.HDUList