extract_data

kgpy.io.fits.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). :rtype: numpy.ndarray :return: An array composed of all the hdu.data elements with shape (n, …, m, i, …, j), where (i, …, j) is the shape of the data arrays.

Parameters:

hdu (ndarray) –

Return type:

ndarray