check_dimensions

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

Check the input model pixeldq dimensions.

The pixeldq attribute should have the same dimensions as the image plane of the input model science data If it has dimensions (0, 0), create an array of zeros with the same shape as the image plane of the input model. For the FGS modes, the GuiderRawModel has only a regular DQ array (no pixeldq nor groupdq).

Parameters:
input_modelRampModel or GuiderRawModel

Input datamodel.