nwm_eval.create_plots.get_metric_dataframe#
- nwm_eval.create_plots.get_metric_dataframe(conf, data_paths, plot_type)[source]#
Get the metric DataFrame by gathering all metrics and then filtering by metric subset and lead times.
- Return type:
DataFrame- Parameters:
conf – A dictionary containing the configuration for gathering and filtering the metrics, which may include “lead_times” and “metric_subset”.
data_paths – A dictionary containing the paths to the metric files for each dataset.
plot_type – The type of the plot for which the metric DataFrame is being prepared, used to determine which lead times and metrics to filter by.
- Returns:
A DataFrame containing the filtered metrics.