xoa.core.signal

xoa.core.signal#

Signal processing kernels: peaks, windows and quantiles of series.

The numba kernels (peaks, windows, quantiles, rolling range) work on regularly sampled time series and take arrays with time as first axis, (nt, ...): the other axes (points, grid, depth) are flattened without a copy to (nt, npoints) and the points are processed independently and in parallel. A 1-D series (nt,) is a field with one point. NaNs are skipped.

Functions

peak_mask(x[, distance])

Boolean mask of the local maxima of series.

quantile_mask(x, quantile)

Mask of the samples at or above a quantile of their own series.

rolling_range(x, window)

Maximum minus minimum on a centred sliding window.

window_max_at(x, mask, half_window[, ref])

Maximum of x in a window centred on the samples flagged by mask.

window_min_at(x, mask, half_window[, ref])

Minimum of x in a window centred on the flagged samples.