# We'll extract a wet six month period on the Thames during the 2006-2007 hydrological year
ThamesQ <- subset(ThamesPQ[,c(1,3)], Date >= "2006-11-04" & Date <= "2007-05-06")
#Then apply the flow split with default settings
QSplit <- FlowSplit(ThamesQ$Q)
#Now do it with an upper baseflow level of 100m3/s
QSplit <- FlowSplit(ThamesQ$Q, BaseQUpper = 100)
# First we'll use the DesHydro function to pick out a reasonable looking event from the Thames flow.
Q <- DesHydro(ThamesPQ[,c(1,3)], Plot = FALSE, EventSep = 15)
Q <- Q$AllScaledHydrographs$hydro7
#Then we'll use our flow split function
FlowSplit(Q)
#Next we will get a single peaked "idealised" hydrograph using the ReFH function.
QReFH <- ReFH(GetCDs(15006))
QReFH <- QReFH[[2]]$TotalFlow
#Now use the function with and without an upward adjustment of the baseflow on the falling limb.
QFlowSplit <- FlowSplit(QReFH)
QFlowSplit <- FlowSplit(QReFH, AdjUp = 0.15)
Run the code above in your browser using DataLab