adjacency_sat

jwst.saturation.saturation.adjacency_sat(flag_temp, saturated, n_pix_grow_sat)[source]

Apply saturation flags for pixel next to saturated pixels.

Parameters:
flag_tempndarray

2D array of saturated groups.

saturatedint

Saturated flag.

n_pix_grow_satint

Number of layers of pixels adjacent to a saturated pixel to also flag as saturated (i.e., ‘1’ will flag the surrounding 8 pixels) to account for charge spilling.

Returns:
flag_tempndarray

2D array of saturated groups for pixel next to saturated pixels.