liger_iris_pipeline.dq_init.dq_initialization
Functions
|
Check that the input model pixeldq attribute has the same dimensions as the image plane of the input model science data If it has dimensions (0,0), create an array of zeros with the same shape as the image plane of the input model. |
|
Perform the dq_init step on a JWST datamodel |
|
Perform the dq_init step on a JWST datamodel |
- liger_iris_pipeline.dq_init.dq_initialization.check_dimensions(input_model)[source]
Check that the input model pixeldq attribute has the same dimensions as the image plane of the input model science data If it has dimensions (0,0), create an array of zeros with the same shape as the image plane of the input model. For the FGS modes, the GuiderRawModel has only a regular dq array (no pixeldq or groupdq)
- Parameters:
input_model (JWST datamodel) – input datamodel
- Returns:
None
- liger_iris_pipeline.dq_init.dq_initialization.correct_model(input_model, mask_model)[source]
Perform the dq_init step on a JWST datamodel
- Parameters:
input_model (input JWST datamodel) – The jwst datamodel to be corrected
mask_model (mask datamodel) – The mask model to use in the correction
- Returns:
output_model (JWST datamodel) – The corrected JWST datamodel
- liger_iris_pipeline.dq_init.dq_initialization.do_dqinit(input_model, mask_model)[source]
Perform the dq_init step on a JWST datamodel
- Parameters:
input_model (input JWST datamodel) – The jwst datamodel to be corrected
mask_model (mask datamodel) – The mask model to use in the correction
- Returns:
output_model (JWST datamodel) – The corrected JWST datamodel