apply_dynamic_cleaning

lstchain.image.cleaning.apply_dynamic_cleaning(image, signal_pixels, threshold, fraction)

Application of the dynamic cleaning

Parameters:
image: `np.ndarray`

Pixel charges

signal_pixels
threshold: `float`

Minimum average charge in the 3 brightest pixels to apply the dynamic cleaning (else nothing is done)

fraction: `float`

Pixels below fraction * (average charge in the 3 brightest pixels) will be removed from the cleaned image

Returns:
mask_dynamic_cleaning: np.ndarray

Mask with the selected pixels after the dynamic cleaning