read_file_header, filetype=None, **kwargs)[source] [edit on github]

Reads the header from a given file.

This should always return a instance of FileHeader.

  • filepath (str) – The file from which the header is to be read.

  • filetype (str) – Supported reader or extension to manually specify the filetype. Supported readers are (‘jp2’, ‘fits’).


headers (list) – A list of headers.