check_dimensions

jwst.dq_init.dq_initialization.check_dimensions(input_model)[source]

Check the input model DQ array dimensions.

For GuiderRawModel, compare the dq array to the expected default dimensions. For RampModel or SuperstripeRampModel, compare pixeldq and groupdq.

If the dimensions do not match, replace the current array with a default zero-filled one of the correct dimensions.

Parameters:
input_modelRampModel or SuperstripeRampModel, or GuiderRawModel

Input datamodel; updated in place.