Skip to content

Commit

Permalink
updated time cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
clara-escanuela committed Feb 15, 2024
1 parent b9ab65e commit afc1704
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions ctapipe/image/cleaning.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,15 @@ def time_clustering(
hard_cut_pe=4,
):
"""
Clean an image by selecting pixels which pass a time clustering algorithm using DBSCAN.
Previously used for HESS [timecleaning]_.
As a neighbor-based image extractor algorithm can lead to biases in the time reconstruction of noise pixels,
specially those next to the shower, a cut in the minimum signal image with respect to the noise level is
firstly applied. The cut is performed relative to the noise to account for, e.g., bright stars. Alternatively,
a hard cut could also be performed.
specially those next to the shower, a cut in the minimum signal image is applied.
DBSCAN runs with the reconstructed times and pixel positions after scaling. Scaling is needed because eps
is not dimension dependent. If scaling is performed properly, eps can be set to 1. DBSCAN returns the
cluster IDs of each point being -1 the label for noise pixels.
cluster IDs of each point. Pixels associated to cluster ID -1 are classified as noise.
Parameters
----------
Expand All @@ -145,16 +142,16 @@ def time_clustering(
pixel charge information
time: array
pixel timing information
hard_cut_pe: float
Hard cut in the number of signal pe
minpts: int
Minimum number of points to consider a cluster
eps: float
Minimum distance in dbscan
time_scale_ns: float
Time scale in ns
space_scale_m: float
space_scale: float
Space scale in m
hard_cut_pe: float
Hard cut in the number of signal pe
Returns
-------
Expand Down

0 comments on commit afc1704

Please sign in to comment.