time_constrained_clean¶
-
ctapipe.image.cleaning.
time_constrained_clean
(geom, image, arrival_times, picture_thresh=7, boundary_thresh=5, time_limit_core=4.5, time_limit_boundary=1.5, min_number_picture_neighbors=1)[source]¶ time constrained cleaning by MAGIC
Cleaning contains the following steps: - Find core pixels (containing more photons than a picture threshold) - Remove pixels with less than N neighbors - Keep core pixels whose arrival times are within a time limit of the average time - Find boundary pixels (containing more photons than a boundary threshold) - Remove pixels with less than N neighbors arriving within a given timeframe
- Parameters
- geom: `ctapipe.instrument.CameraGeometry`
Camera geometry information
- image: array
pixel values
- arrival_times: array
pixel timing information
- picture_threshold: float or array
threshold above which all pixels are retained
- boundary_threshold: float or array
threshold above which pixels are retained if they have a neighbor already above the picture_thresh
- time_limit_core: int or float
arrival time limit of core pixels w.r.t the average time
- time_limit_boundary: int or float
arrival time limit of boundary pixels w.r.t neighboring core pixels
- min_number_neighbors: int
Threshold to determine if a pixel survives cleaning steps. These steps include checks of neighbor arrival time and value
- Returns
- A boolean mask of clean pixels.