get_header

sunpy.io.fits.get_header(afile)[source] [edit on github]

Read a fits file and return just the headers for all HDU’s. In each header, the key WAVEUNIT denotes the wavelength unit which is used to describe the value of the key “WAVELNTH”.

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.helper.FileHeader headers.