ch_get_peaks function

Extracts peak flows over a threshold