nwm_eval.calc_metrics.calc_teehr_metrics#

nwm_eval.calc_metrics.calc_teehr_metrics(pairs, geometry, metrics)[source]#

Calculate TEEHR metrics for a given dataframe of paired data.

Return type:

DataFrame

Parameters:
  • pairs – Path to the parquet file containing paired data.

  • geometry – Path to the geometry file (e.g., crosswalk) needed for TEEHR metrics.

  • metrics – List of metric names to calculate.

Returns:

A DataFrame containing the calculated metrics for each location and lead group.