This function accepts a data frame that contains a column named "discharge" and calculates the base flow. Compute the mean annual flows. Compute the minimum of a 7-day moving average flow for each year and divide them by the mean annual flow for that year. ML17 is the mean (or median-Use Preference option) of those ratios (dimensionless-temporal).
data frame containing a "discharge" column containing daily flow values
string containing a "mean" or "median" preference
ml17 numeric value of ML17 for the given data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.