bundles / astropy latest / astropy / io / fits / convenience / getheader
function
astropy.io.fits.convenience:getheader
source: /astropy/io/fits/convenience.py :99
Signature
def getheader ( filename , * args , ** kwargs ) Summary
Get the header from an HDU of a FITS file.
Parameters
filename: path-like or file-likeFile to get header from. If an opened file object, its mode must be one of the following rb, rb+, or ab+).
ext, extname, extverThe rest of the arguments are for HDU specification. See the getdata documentation for explanations/examples.
**kwargsAny additional keyword arguments to be passed to astropy.io.fits.open.
Returns
header: `Header` object
Aliases
-
astropy.io.fits.getheader