hydromodpy.calibration.metrics.series#

Series helpers: observation loading, time-index resolution, runoff postprocess.

These primitives massage time series into shapes the scalar/composite scorers expect. They do not call the solver layer.

Functions

add_runoff_to_discharge(simulated, ctx)

Add the surface-runoff forcing to a baseflow series in m³/s.

load_observed(ctx, variable)

Pull observation timeseries from the loaded-data context.

resolve_time_index(ctx[, n_timesteps])

Build a DatetimeIndex matching the simulation time grid.

Classes

ObservedSeries(station_id, variable, series)

One observed timeseries indexed by time.