Calculate Days Inundated

duration_calc_days_inundated(q_gauge, q_crit, stat = "max")

Arguments

q_gauge

A vector of flow values, typically a time series

q_crit

A numeric value against which to calculate the exceedance

stat

Either "max" to calculate maximum days inundated (default) or "sum" to calculate total days inundated

Value

A single numeric value for the specified statistic.