pyhiperta.cleaning
Charge images cleaning algorithms: tail-cut cleaning.
Functions:
| Name | Description |
|---|---|
tail_cuts_cleaning |
Compute the mask of "signal" pixel that pass the tail_cuts thresholds. |
tail_cuts_cleaning
Compute the mask of "signal" pixel that pass the tail_cuts thresholds.
The implementation is in 2 steps:
- find the group of pixels that pass the pixel_threshold
- find the pixels that pass neighbors_threshold and have at least 1 neighbor passing the 1st step.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
waveforms_2D
|
ndarray
|
Batch or integrated waveform in 2D format. Shape: ([N_batch,] N_pixels_x, N_pixels_y) |
required |
pixel_threshold
|
float
|
A pixel with a value greater or equal than |
required |
neighbors_threshold
|
float
|
A pixel with a value greater or equal than |
required |
min_number_neighbors
|
int
|
Minimum number of neighboring pixels that must have a value above |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
A boolean mask with value True for "signal" pixels and value False otherwise. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the shape of waveforms_2D can not be interpreted as a (batch of) 2D waveforms |