🔵 🔵 🔵


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, _Verify

HDU list class. This is the top-level FITS object. When a FITS file is opened, a HDUList object is returned.

Construct a HDUList object.

Parameters:
hdus: HDU or sequence thereof, optional

The HDU object(s) to comprise the HDUList. Should be instances of HDU classes like ImageHDU or BinTableHDU.

file: file-like object, bytes, optional

The opened physical file associated with the HDUList or a bytes object containing the contents of the FITS file.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •