read_file#
- sunpy.io.read_file(filepath, filetype=None, **kwargs)[source]#
Automatically determine the filetype and read the file.
- Parameters:
filepath (
str
, path-like) – The file to be read.filetype (
str
, optional) – Supported reader or extension to manually specify the filetype. Supported readers are (‘jp2’, ‘fits’, ‘ana’)memmap (
bool
, optional) – Should memory mapping be used, i.e. keep data on disk rather than in RAM. This is currently only supported by the FITS reader.**kwargs (
dict
) – All extra keyword arguments are passed to.read
for the file specific reader.
- Returns:
pairs (
list
) – A list of (data, header) tuples.