flag_cr

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

Masks outliers in science image.

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) –
  • = 1 # Radius to mask [default=1 for 3x3] (grow) –
  • = 0 # Length of CTE correction to be applied (ctegrow) –
  • = "5.0 4.0" # Signal-to-noise ratio (snr) –
  • = "1.2 0.7" # scaling factor applied to the derivative (scale) –
  • = 0 # Background value (backg) –