hydromodpy.results.timeseries_downsample#

LTTB downsampling for dense time series stored in the catalog.

The Largest Triangle Three Buckets algorithm preserves visual fidelity while reducing point count. Used by Run.timeseries() when callers pass downsample="lttb" and the series exceeds the activation threshold.

Original values stay reachable via downsample=None (or by not passing the argument).

Functions

is_lttb_available()

Return True when the optional lttb package is importable.

lttb_downsample(series, *[, n_out])

Return an LTTB-downsampled view of series with at most n_out points.

should_downsample(n_points, *[, threshold])

Return True when the series exceeds the LTTB activation threshold.