get_key_value

sofia_redux.toolkit.utilities.fits.get_key_value(header, key, default='UNKNOWN')[source]

Get a key value from a header.

Parameters:
headerastropy.io.fits.Header

FITS header.

keystr

Key to retrieve.

default

Value to return if not retrievable from the header.

Returns:
str, int, float, or bool

FITS keyword value; default if not found.