pyhiperta.waveform_indexing.waveform2Dto1D¶
- pyhiperta.waveform_indexing.waveform2Dto1D(maps1D_to_2D: ndarray, waveform2D: ndarray) ndarray [source]¶
Get the 1D array representing the waveform from the 2D representation waveform2D.
Notes
The result is a view in waveform2D! Modifying the view will modify waveform2D!
- Parameters:
maps1D_to_2D (tuple of np.ndarray) – The tuple holding the indices to go from 2D to 1D representation
waveform2D (np.ndarray) – The 2D array holding the waveform values.
- Returns:
1D array holding the waveform values.
- Return type:
np.ndarray