pywrdrb.post.calculate_error_metrics.calculate_error_metrics#
- pywrdrb.post.calculate_error_metrics.calculate_error_metrics(reservoir_downstream_gages, major_flows, models, output, nodes, scenarios, start_date=None, end_date=None, end_inclusive=False)#
Compute error metrics for modeled vs. observed flows across nodes, models, and scenarios.
- Parameters:
reservoir_downstream_gages (dict) – Dictionary of observed reservoir downstream gage flows.
major_flows (dict) – Dictionary of observed major flow locations.
models (list of str) – List of model names.
output (object) – Simulation output object with reservoir and flow values.
nodes (list of str) – Nodes to evaluate (reservoirs or major flows).
scenarios (list of str) – Scenario identifiers.
start_date (str or pandas.Timestamp, optional) – Start of evaluation period.
end_date (str or pandas.Timestamp, optional) – End of evaluation period.
end_inclusive (bool, optional) – Whether to include end_date in the evaluation window. Default is False.
- Returns:
Multi-indexed dataframe with metrics by node, model, and scenario.
- Return type:
pandas.DataFrame