generate_substripe_ranges

jwst.lib.stripe_utils.generate_substripe_ranges(sci_model, science_frame=False)[source]

Determine the bounds of each substripe based on the input model multistripe metadata.

All ranges are indexed in detector orientation by default.

Parameters:
sci_modelJwstDataModel

The input datamodel with multistripe params defined.

science_framebool, optional

If True, the slow axis ranges are returned in science orientation instead of detector orientation.

Returns:
dict

Dictionary with keys “full”, “subarray”, “reference_full”, and “reference_subarray”. Each key has another dictionary as the value, with integer counter keys. Values are the ranges of array index in slowaxis corresponding to stripe shapes in the full array, striped subarray for the science and reference regions respectively.