fits

Functions

extract_data(hdu)

Assemble all the data in an array of hdu objects into a single array :type hdu: numpy.ndarray :param hdu: An astropy.io.fits.PrimaryHDU array with shape (n, ..., m).

extract_header_value(hdu, key)

From an array of HDUs and a fits header keyword, make an array with the value of the keyword as each element.

extract_times(hdu, keyword)

From an array of HDUs, create a time object where each element is a HDU timestamp :type hdu: numpy.ndarray :param hdu: An astropy.io.fits.PrimaryHDU array :return: astropy.time.Time object with the timestamps extracted from the HDU array.

extract_wcs(hdu)

rtype:

astropy.wcs.wcs.WCS

load_hdu(frame_path[, hdu_index])

Load the first hdu from each path in frame list.