bundles / astropy latest / astropy / io / fits / hdu / base / _BaseHDU / readfrom
classmethod
astropy.io.fits.hdu.base:_BaseHDU.readfrom
source: /astropy/io/fits/hdu/base.py :333
Summary
Read the HDU from a file. Normally an HDU should be opened with open which reads the entire HDU list in a FITS file. But this method is still provided for symmetry with writeto.
Parameters
fileobj: file-likeInput FITS file. The file's seek pointer is assumed to be at the beginning of the HDU.
checksum: boolIf
True, verifies that bothDATASUMandCHECKSUMcard values (when present in the HDU header) match the header and data of all HDU's in the file.ignore_missing_end: boolDo not issue an exception when opening a file that is missing an
ENDcard in the last header.
Aliases
-
astropy.io.fits.convenience._BaseHDU.readfrom