nwm_eval.calc_metrics.parse_lead_range#

nwm_eval.calc_metrics.parse_lead_range(l1)[source]#

Parse lead strings of various formats.

Supported formats include:

“5” “-2” “1-3” “-2-4” “m2” “m2-4” “-2–1”

Parameters:

l1 – A string representing a lead time or range of lead times.

Returns:

A tuple of two floats representing the start and end of the lead time range.