ref_matches_sci

jwst.lib.reffile_utils.ref_matches_sci(sci_model, ref_model)[source]

Match science model to reference model.

Check to see if the science model has the same subarray characteristics as the reference model. Also performs error checking on the subarray keywords in both the reference file and science data.

Parameters:
sci_modelJwstDataModel

Science data model.

ref_modelJwstDataModel

Reference file data model.

Returns:
statusbool

True if the science model has the same subarray parameters as the reference model, False otherwise.