nabu.thirdparty.pcaflats_utils
source module nabu.thirdparty.pcaflats_utils
Functions
-
zinger_remove — Remove zingers. Anything which is >nsigma (default: 5) sigma after a 3x3 median filter is replaced by the filtered values.
-
dezinger — Performs parallelized zinger removal.
-
ccij — Compute the covariance (img[i]*img[j]).sum() / npixels It is a wrapper for threading. args == i, j, npixels, imgs
source zinger_remove(img: np.ndarray, dark: np.ndarray, medsize: int = 3, nsigma: float = 5)
Remove zingers. Anything which is >nsigma (default: 5) sigma after a 3x3 median filter is replaced by the filtered values.
Performs parallelized zinger removal.
Parameters
-
in_imgs : tuple — Tuple in the form (flats, darks).
-
Written this way to have only one argument. Could be improved, but it works.
Compute the covariance (img[i]*img[j]).sum() / npixels It is a wrapper for threading. args == i, j, npixels, imgs