is_subarray

jwst.lib.reffile_utils.is_subarray(input_model)[source]

Check if a data model comes from a subarray readout.

If the data dimensions are less than 2048x2048 (or 1032x1024 for MIRI), it is assumed to be a subarray.

Parameters:
input_modelJwstDataModel

Input data model to be checked.

Returns:
statusbool

True if the primary data array of the model is smaller than full-frame, False otherwise.