nwm_eval.calc_metrics.parse_lead#

nwm_eval.calc_metrics.parse_lead(x)[source]#

Parse a lead time string, handling ‘m’ prefix for negative values.

Parameters:

x – A string representing a lead time, which may start with ‘m’ to indicate a negative value.

Returns:

An integer representing the lead time, with negative values for ‘m’ prefix.