NeighborAverage¶
-
class
ctapipe.image.invalid_pixels.
NeighborAverage
(**kwargs: Any)[source]¶ Bases:
ctapipe.image.invalid_pixels.InvalidPixelHandler
Methods Summary
__call__
(tel_id, image, peak_time, pixel_mask)Interpolate pixels in dl1 images and peak_times
Methods Documentation
-
__call__
(tel_id, image, peak_time, pixel_mask)[source]¶ Interpolate pixels in dl1 images and peak_times
Pixels to be interpolated are replaced by the average value their neighbors.
Pixels where no valid neighbors are available are filled with zeros.
- Parameters
- tel_idint
telescope id
- imagenp.ndarray
Array of pixel image values
- peak_timenp.ndarray
Array of pixel peak_time values
- pixel_masknp.ndarray
Boolean mask of the pixels to be interpolated
- Returns
- imagenp.ndarray
Image with interpolated values
- peak_timenp.ndarray
peak_time with interpolated values
-