This function accepts a data frame that contains a column named "discharge" and calculates DH12; Annual maximum of 7-day moving average flows divided by the median for the entire record. Compute the maximum daily average flow for each year. DH12 is the mean of these values divided by the median for the entire record (dimensionless-spatial).
data frame containing a "discharge" column containing daily flow values
dh12 numeric containing DH12 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.