Primary
astropy.io.fits.HDUList() ⚬|Documentation|1st|20251021011733-00-⌔
HDU Lists — Astropy v7.2.0#astropy.io.fits.HDUList
class
astropy.io.fits.HDUList(hdus=[], file=None)Bases:
list,_VerifyHDU list class. This is the top-level FITS object. When a FITS file is opened, a
HDUListobject is returned.Construct a
HDUListobject.Parameters:
hdus: HDU or sequence thereof, optionalThe HDU object(s) to comprise the
HDUList. Should be instances of HDU classes likeImageHDUorBinTableHDU.
file: file-like object,bytes, optionalThe opened physical file associated with the
HDUListor a bytes object containing the contents of the FITS file.Printed 2026-06-28.
Link to original
Secondary
• • •