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_model
JwstDataModel Science data model.
- ref_model
JwstDataModel Reference file data model.
- sci_model
- Returns:
- sub_model
JwstDataModel Subarray version of the reference file model.
- sub_model