get_subarray_model

jwst.lib.reffile_utils.get_subarray_model(sci_model, ref_model)[source]

Get subarray model.

Create a subarray version of a reference file model that matches the subarray characteristics of a science data model. A new model is created that contains subarrays of all data arrays contained in the reference file model.

Parameters:
sci_modelJwstDataModel

Science data model.

ref_modelJwstDataModel

Reference file data model.

Returns:
sub_modelJwstDataModel

Subarray version of the reference file model.