hdmerge

sofia_redux.instruments.forcast.hdmerge.hdmerge(headers, reference_header=None)[source]

Merge input headers.

Keyword handling is defined in the configuration file at data/header_merge.cfg.

Parameters:
headerslist of astropy.io.fits.Header

Headers to check.

reference_headerastropy.io.fits.Header, optional

If provided, is used as the base header to be updated. If not provided, the first header (by DATE-OBS) is used as the reference.

Returns
——-
astropy.io.fits.Header

Combined header.