This function accepts a data frame that contains a column named "discharge" and calculates DH8; Variability of annual maximum of 7-day moving average flows. Compute the standard deviation for the maximum 7-day moving averages. DH8 is 100 times the standard deviation divided by the mean (percent-spatial).
data frame containing a "discharge" column containing daily flow values
dh8 numeric containing DH8 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.