quick_clean

jwst.clean_flicker_noise.autoparam.quick_clean(input_model, flat_filename=None)[source]

Run a quick version of the flicker noise cleaning on a rate image.

This will return a median-cleaned and optionally flat-fielded rate image. Input data may be a ramp, rate, or rateints model. If rateints, the data from all integrations are averaged before cleaning.

All cleaning parameters are set to default values.

Parameters:
input_modelRampModel, ImageModel, or CubeModel

Input data to clean.

flat_filenamestr or None

If provided, will be read in and divided into the image before cleaning.

Returns:
imagendarray of float

2D cleaned rate image.

maskndarray of bool

2D mask marking background pixels as True.