bundles / astropy latest / astropy / io / fits / header / Header / get
function
astropy.io.fits.header:Header.get
source: /astropy/io/fits/header.py :866
Signature
def get ( self , key , default = None ) Summary
Similar to dict.get--returns the value associated with keyword in the header, or a default value if the keyword is not found.
Parameters
key: strA keyword that may or may not be in the header.
default: optionalA default value to return if the keyword is not found in the header.
Returns
: value: str, number, complex, bool, or ``astropy.io.fits.card.Undefined``The value associated with the given keyword, or the default value if the keyword is not in the header.
Aliases
-
astropy.io.fits.Header.get