flag_cr

jwst.outlier_detection.outlier_detection.flag_cr(sci_image, blot_image, **pars)[source]

Masks outliers in science image by updating DQ in-place

Mask blemishes in dithered data by comparing a science image with a model image and the derivative of the model image.

Parameters
  • sci_image (ImageModel) – the science data

  • blot_image (ImageModel) – the blotted median image of the dithered science frames

  • pars (dict) – the user parameters for Outlier Detection

  • parameters (Default) –

  • ratio (snr = "5.0 4.0" # Signal-to-noise) –

  • derivative (scale = "1.2 0.7" # scaling factor applied to the) –

  • value (backg = 0 # Background) –