Water Data Boot Camp: Fall 2019
The passing of the Clean Water Act in 1972 and the Endangered Species Act in 1973 has resulted in many reservoirs having to meet downstream flow requirements for either water quality purposes or species protection. For example, at the Clayton gauge, minimum flow requirements have ranged from 184 to 404 cfs since 1983. Here we want to see if the establishment of Falls Lake has raised minimum flows.
There are many ways to approach low flow to understand how minimum streamflow has changed since Falls Lake was constructed. We will look at a common metric known as 7Q10. 7Q10 is the lowest average discharge over a one [week/month/year] period with a recurrence interval of 10 years. This means there is only a 10% probability that there will be lower flows than the 7Q10 threshold in any given year.
To get more practice with pivot tables and if statements, we will calculate this metric using the 7 month period. To do this we need to construct a rolling average of monthly discharges spanning 7 month, which we can do using a series of pivot tables.
The first pivot table aggregates our daily discharge data into total monthly discharge values for each year. From this we table, we can compute a 7-month rolling average of minimum-flows from the given month's total discharge and those from 6 months preceding it.
Next, we construct a second Pivot Table from the above data. This one aggregates the monthly data by year, extracting the minimum of the 7-month average for each year. This will enable us to compute a regression similar the one we constructed for the flood return interval, but this regression is to reveal the recurrence interval of low flows so that we can determine the streamflow of a 10% low flow event.
We then sort and rank these annual monthly-minimum values, similar to how we computed flood return intervals to compute 7 month minimum-flow (7Q) return interval and then the low flow probability of recurrence (POR) of these flows, again using the same methods used for calculating flood return intervals and probabilities of recurrence. From this we can compute a regression between our yearly 7Q flows and POR, and use that regression equation to determine 7Q10, or the expected minimum flow across a span of 10 years.
Create a Pivot Table from the data in the EDA worksheet, sending the output to a new worksheet.
Rename the new worksheet "7Q10".
Set year
and month
as the Pivot Table rows. (We use year instead of Water Year to ensure the data are being read in the correct order. If we use water year, the wrong September and Octobers are matched together.)
Set Mean Flow (cms)
as your Pivot Table value. Ensure it is calculating the sum of the monthly flows (since taking lowest 7 month average, small variability in the number of days in each month is ok.
In the field settings for both year
and month
, change the Subtotals & Filters
to None
. Did you notice what changes as a result of this modification?
Right click the top left Row Labels
cell, and select PivotTable Options.
Totals & Filters
tab, un-check the two Grand Totals options. Display
tab, check "Classify PivotTable layout..." This "flattens" your table to that year is shown in one column and month in another.
At this point, your pivot table of total monthly flow should appear like this:
F1
. (It can go anywhere, but this will make the subsequent steps easier to follow.) Delete the cells labelled "(blank)" at the bottom of the pasted values. Go To Special
dialog box will appear.Blanks
option, and click OK
. All of the blank cells have been selected. =F3
into active cell F4 without changing the selection. Ctrl
+ Enter
, Excel will copy the respective formula to all blank cells.7Q
.Set x
in the regression equation to 0.10 and find y
. This is your 7Q10.
Add the 7Q10 point to the graph using Select Data...
with your plot active.
Here we want to produce a plot that shows when and how frequently low flows have occurred. We do this by first created a new column of just the monthly discharges falling below our 7Q10 threshold, and then creating a plot where these are highlighted against all monthly discharge values.
Below 7Q10
. IF
formula to set values in this column to the monthly discharge value if the monthly discharge was below your computed 7Q10, otherwise set to an empty string (""
). =Date(year,month,day)
COUNTIF
function, orBelow 7Q10
column and count the number of occurrences. (PivotTableTools
> Change Data Source...
).