metrics_handler#

Dispatch metric calculations and write metric CSV files.

Authors#

  • Simon Lüdke

  • Carla Peter

Functions#

calculate_esp_for_gridded_data(map1, map2, ...)

Calculate ESP metrics for two gridded datasets.

calculate_metric_per_timestep_and_average(...)

Apply func to matching 2D timesteps of two 3D arrays,then average the per-timestep results.

calculate_mspaef_for_gridded_data(map1, ...)

Calculate MSPAEF metrics for two gridded datasets.

calculate_results_metric(map1, map2, ...[, ...])

Calculate the requested gridded result metric.

calculate_spaef_for_gridded_data(map1, map2, ...)

Calculate SPAEF metrics for two gridded datasets.

calculate_waspaef_for_gridded_data(map1, ...)

Calculate WASPAEF metrics for two gridded datasets.

create_csv_from_dict(results_dict, out_path)

Create a CSV file from the provided dictionary.

create_results_csv(map1, map2, ds1_name, ...)

Calculate the selected metric and create a CSV file.

normalize_results_metric(metric)

Normalize and validate a result CSV metric name.