{ } Raw JSON

bundles / astropy latest / astropy / io / fits / hdu / nonstandard / FitsHDU / fromfile

classmethod

astropy.io.fits.hdu.nonstandard:FitsHDU.fromfile

source: /astropy/io/fits/hdu/nonstandard.py :41

Summary

Like FitsHDU.fromhdulist(), but creates a FitsHDU from a file on disk.

Parameters

filename : str

The path to the file to read into a FitsHDU

compress : bool, optional

Gzip compress the FITS file

Aliases

  • astropy.io.fits.FitsHDU.fromfile