fits_reader

Contents

fits_reader#

glue.core.data_factories.fits_reader(source, auto_merge=False, exclude_exts=None, label=None)#

Read in all extensions from a FITS file.

Parameters:
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:`astropy.io.fits._BaseHDU`, ] or [index, ]

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