get_correction_table

jwst.photom.time_dependence.get_correction_table(photom_model, midtime, bounded=False)[source]

Get a time-dependence correction table from a PHOTOM reference file model.

If a phot_table is present, the table returned matches the shape of the phot_table. If it is not present, None is returned.

Time correction parameters are expected to be present in timecoeff_linear, timecoeff_exponential, or timecoeff_powerlaw attributes. If no time correction parameters are present in the model, all values in the output array are 1.0. If correction parameters are present, the correction value is computed from the expected functional form and the input time. If more than one correction is present, they are multiplied together.

Parameters:
photom_model~stdatamodels.jwst.datamodels.JwstDataModel`

May be any photom datamodel. Expected attributes are phot_table, timecoeff_linear, timecoeff_exponential, and timecoeff_powerlaw.

midtimefloat

Mid-point MJD of observation.

boundedbool, optional

If True, any correction value greater than 1 is set to 1.0.

Returns:
correctionndarray or None

None is returned if the input model has no phot_table. Otherwise, the correction array matches the length of the input phot_table.