glue.core.data_factories.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.

auto_merge: bool

Merge extensions that have the same shape and only one has a defined WCS.

exclude_exts: [:class:``, ] or [index, ]

List of HDU’s to exclude from reading. This can be a list of HDUs or a list of HDU indices.