check_exptime
- jwst.combine_1d.combine1d.check_exptime(exptime_key)[source]
Check exptime_key for validity.
This function checks
exptime_key. If it is valid, the corresponding value used by the metadata interface will be returned. This will be either “integration_time” or “exposure_time”. If it is invalid, “unit weight” will be returned (meaning that a weight of 1 will be used when averaging spectra), and a warning will be logged.- Parameters:
- exptime_keystr
A keyword or string indicating what value (integration time or exposure time) should be used as a weight when combing spectra.
- Returns:
- exptime_keystr
The value will be either “integration_time”, “exposure_time”, or “unit_weight”.