hydrobm.benchmarks.bm_rainfall_runoff_ratio_to_timestep
- hydrobm.benchmarks.bm_rainfall_runoff_ratio_to_timestep(data, cal_mask, precipitation='precipitation', streamflow='streamflow')[source]
Calculate the long-term rainfall-runoff ratio over the calculation period and use that as a predictor of runoff-from-precipitation for each timestep in the whole dataframe.
- Parameters:
- datapandas DataFrame
Input data containing precipitation and streamflow columns.
- cal_maskpandas Series
Boolean mask for the calculation period.
- precipitationstr, optional
Name of the precipitation column in the input data. Default is [‘precipitation’].
- streamflowstr, optional
Name of the streamflow column in the input data. Default is [‘streamflow’].
- Returns:
- bm_vals: float
Rainfall-runoff ratio value for the calculation period.
- qbmpandas DataFrame
Benchmark flow time series for the rainfall-runoff ratio (RRR) benchmark model. Computed as long-term RRR multiplied by precipitation at each timestep.