generate_superstripe_ranges

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

Return a dict of slowaxis ranges read into stripes.

Given an input model with multistripe parameters in its metadata, return the slowaxis pixel ranges corresponding to the nreads2 positions read into each stripe of a set of superstripes.

All ranges are indexed in detector orientation.

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 0-indexed stripe labels as 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.