This function accepts a data frame that contains a column named "discharge" and a threshold value obtained using the peakdata and peakthresh functions and calculates DH22; Flood interval. Compute the flood threshold as the flow equivalent for a flood recurrence of 1.67 years. Determine the median number of days between flood events for each year. DH22 is the mean (or median-Use Preference option) of the yearly median number of days between flood events (days-temporal).
data frame containing a "discharge" column containing daily flow values
numeric containing 1.67-year flood threshold calculated by getPeakThresh
dh22 numeric containing DH22 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.