post_process_rate

jwst.clean_flicker_noise.clean_flicker_noise.post_process_rate(input_model, input_dir='', assign_wcs=False, msaflagopen=False, flat_dq=False)[source]

Perform additional processing for the input rate model, as needed.

Parameters:
input_modelImageModel or CubeModel

Input rate model.

input_dirstr

Path to the input directory. Used by sub-steps (e.g., assign_wcs for NIRSpec MOS data) to find auxiliary data.

assign_wcsbool, optional

If set and the input does not already have a WCS assigned, the assign_wcs step will be called on the rate model.

msaflagopenbool, optional

If set, the msaflagopen step will be called on the rate model. If a WCS is not already present, assign_wcs will be called first.

flat_dqbool, optional

If set, the flat_field step will be run on the input model. DQ flags are retrieved from the output and added to the input model’s DQ array. The rate data is not modified.

Returns:
output_modelImageModel or CubeModel

The updated model.