This function accepts a data frame that contains a column named "discharge" and calculates DH20; High flow duration. Compute the 75th percentile value for the entire flow record. Compute the average duration of flow events with flows above a threshold equal to the 75th percentile value for the median annual flows. DH20 is the average (or median-Use Preference option) duration of the events (days-temporal).
data frame containing a "discharge" column containing daily flow values
dh20 list containing DH20 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.