make_rate

jwst.clean_flicker_noise.clean_flicker_noise.make_rate(input_model, input_dir='', return_cube=False)[source]

Make a rate model from a ramp model.

Parameters:
input_modelRampModel

Input ramp model.

input_dirstr

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

return_cubebool, optional

If set, a CubeModel will be returned, with a separate rate for each integration. Otherwise, an ImageModel is returned with the combined rate for the full observation.

Returns:
rate_modelImageModel or CubeModel

The rate or rateints model.