interpolate_badpix¶
- stginga.utils.interpolate_badpix(image, badpix_mask, basis_mask, method='linear', rescale=False)[source]¶
Use spline interpolation to fix bad pixel(s).
- Parameters:
- imagendarray
Image to be fixed in-place.
- badpix_mask, basis_maskndarray
Boolean masks of bad pixel(s) and the region used as basis for interpolation.
- method{‘nearest’, ‘linear’, ‘cubic’}
See
griddata()
.- rescalebool
See
griddata()
.