get_header

sunpy.io.fits.get_header(afile)[source]

Read a fits file and return just the headers for all HDU’s.

Parameters

afile (str or astropy.io.fits.HDUList) – The file to be read, or HDUList to process.

Returns

headers (list) – A list of sunpy.io.header.FileHeader headers.