fits_reader(source, auto_merge=False, exclude_exts=None, label=None)¶
Read in all extensions from a FITS file.
source: str or HDUList
The pathname to the FITS file. If an HDUList is passed in, simply use that.
Merge extensions that have the same shape and only one has a defined WCS.
exclude_exts: [hdu, ] or [index, ]
List of HDU’s to exclude from reading. This can be a list of HDU’s or a list of HDU indexes.