hydrobm.benchmarks.bm_monthly_median_flow
- hydrobm.benchmarks.bm_monthly_median_flow(data, cal_mask, streamflow='streamflow')[source]
Calculate the monthly median flow over the calculation period and use that as a predictor for each month in the whole dataframe.
- Parameters:
- datapandas DataFrame
Input data containing streamflow column.
- cal_maskpandas Series
Boolean mask for the calculation period.
- streamflowstr, optional
Name of the streamflow column in the input data. Default is [‘streamflow’].
- Returns:
- bm_vals: pandas DataSeries
Monthly median flow values for the calculation period.
- qbmpandas DataFrame
Benchmark flow time series for the monthly median flow benchmark model.