get_header[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”.


afile (str or – The file to be read, or HDUList to process.


headers (list) – A list of headers.