liger_iris_pipeline.utils.subarray

Functions

get_subarray_model(sci_model, ref_model)

Create a subarray version of a reference file model that matches the subarray characteristics of a science data model.

liger_iris_pipeline.utils.subarray.get_subarray_model(sci_model, ref_model)[source]

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 (JWST data model) – science data model

  • ref_model (JWST data model) – reference file data model

Returns:

sub_model (JWST data model) – subarray version of the reference file model