read(filepath, hdus=None, memmap=None, **kwargs)¶
Read a fits file
The fits file to be read
hdu: `int` or iterable
The HDU indexes to read from the file
A list of (data, header) tuples
This routine reads all the HDU’s in a fits file and returns a list of the data and a FileHeader instance for each one. Also all comments in the original file are concatenated into a single ‘comment’ key in the returned FileHeader.