bundles / astropy latest / astropy / io / fits / hdu / hdulist / HDUList / fileinfo
function
astropy.io.fits.hdu.hdulist:HDUList.fileinfo
source: /astropy/io/fits/hdu/hdulist.py :543
Signature
def fileinfo ( self , index ) Summary
Returns a dictionary detailing information about the locations of the indexed HDU within any associated file. The values are only valid after a read or write of the associated file with no intervening changes to the HDUList.
Parameters
index: intIndex of HDU for which info is to be returned.
Returns
fileinfo: dict or NoneThe dictionary details information about the locations of the indexed HDU within an associated file. Returns
Nonewhen the HDU is not associated with a file.Dictionary contents:
========== ======================================================== Key Value ========== ======================================================== file File object associated with the HDU filename Name of associated file object filemode Mode in which the file was opened (readonly, update, append, denywrite, ostream) resized Flag that when `True` indicates that the data has been resized since the last read/write so the returned values may not be valid. hdrLoc Starting byte location of header in file datLoc Starting byte location of data block in file datSpan Data size including padding ========== ========================================================
Aliases
-
astropy.io.fits.HDUList.fileinfo