{ } Raw JSON

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-like

Input FITS file. The file's seek pointer is assumed to be at the beginning of the HDU.

checksum : bool

If True, verifies that both DATASUM and CHECKSUM card values (when present in the HDU header) match the header and data of all HDU's in the file.

ignore_missing_end : bool

Do not issue an exception when opening a file that is missing an END card in the last header.

Aliases

  • astropy.io.fits.convenience._BaseHDU.readfrom