getdata

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

Returns the data from a FITS file

Uses robust_read to extract the data.

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:
numpy.ndarray