pyhiperta.waveform_indexing¶
Implements the indexing/mapping of waveforms from 1D array (hexagonal structure) to 2D square array.
The 1D array representation is suited for vectorization of “per-element” operations such as calibration, Hillas computation, etc. while the 2D square representation is faster for operations requiring neighbors look-up, such as the tail-cut cleaning. It is faster to copy the data from one representation to the other than to perform the cleaning with the 1D representation.
Functions
|
Returns a mask (boolean array) that multiplied with waveforms (1D) puts all pixels except the outer rings to 0. |
Return the stencil selecting __only the neighbors__ of a pixel in 2D array. |
|
|
Get the 2D array representation of waveform |
|
Get the 1D array representing the waveform from the 2D representation waveform2D. |
|
Create the 2D waveform array with "squared geometry" and 1D to 2D indices maps. |