# We'll extract a wet six month period on the Thames during the 2006-2007 hydrological year
thames_q <- subset(ThamesPQ[, c(1, 3)], Date >= "2006-11-04" & Date <= "2007-05-06")
# Then apply the flow split with default settings
q_split <- FlowSplit(thames_q$Q)
# Now do it with an upper baseflow level of 100 m^3/s
q_split <- FlowSplit(thames_q$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
q_refh <- ReFH(GetCDs(15006))
q_refh <- q_refh[[2]]$TotalFlow
# Now use the function with and without an upward adjustment of the baseflow on the falling limb
q_flow_split <- FlowSplit(q_refh)
q_flow_split <- FlowSplit(q_refh, AdjUp = 0.15)
Run the code above in your browser using DataLab