fix_bad_pixels

jwst.ami.bp_fix.fix_bad_pixels(data, pxdq0, filt, pxsc, nrm_model)[source]

Apply the Fourier bad pixel correction to pixels flagged DO_NOT_USE or JUMP_DET.

Original code implementation by Jens Kammerer.

Parameters:
dataarray

Cropped science data

pxdq0array

Cropped DQ array

filtstr

AMI filter name

pxscfloat

Pixel scale, mas/pixel

nrm_modeldatamodel object

NRM pupil datamodel

Returns:
datanumpy array

Corrected data

pxdqndarray[int]

Mask of bad pixels, updated if new ones were found