hdcheck

sofia_redux.instruments.flitecam.hdcheck.hdcheck(headers, kwfile)[source]

Checks file headers against validity criteria

Checks if the headers of the input files satisfy criteria described in a separate file, kept in the calibration data directory. This file should be a configuration file in INI format, specifying the keyword name, condition, data type, and any range requirements.

Parameters:
headerslist of astropy.io.fits.Header

Headers to check.

kwfilestr

Keyword definition file to use.

Returns:
bool

True if headers of all files are correct; False otherwise