get_header

sunpy.io.ana.get_header(filename, debug=False)[source] [edit on github]

Loads an ANA file and only return the header consisting of the dimensions, size (defined as the product of all dimensions times the size of the datatype, this not relying on actual filesize) and comments.

Parameters:

filename : str

Name of file to be read.

debug : bool (optional)

Prints verbose debug information.

Returns:

out : list

A list of FileHeader headers.

Examples

>>> header = sunpy.io.ana.get_header(filename)