RRMT 4 User Manual PDF
RRMT 4 User Manual PDF
MODELLING TOOLBOX
USER MANUAL
Thorsten Wagener
Matthew J. Lees
Howard S. Wheater
http://ewre.cv.ic.ac.uk/
RRMT User Manual
CONTENTS
1 INTRODUCTION _____________________________________________________ 4
1.1 THE TARGET GROUP OF THIS MANUAL __________________________ 5
1.2 OBJECTIVES OF THE RRMT _____________________________________ 5
1.3 HARDWARE AND SOFTWARE REQUIREMENTS ___________________ 5
1.4 ASSUMPTIONS __________________________________________________ 5
1.5 BACKGROUND __________________________________________________ 6
1.6 HOW TO USE THIS MANUAL _____________________________________ 7
1.7 PUBLICATIONS _________________________________________________ 7
1.8 PROGRAM STRUCTURE _________________________________________ 8
2 USER INSTRUCTIONS ________________________________________________ 9
2.1 INSTALLATION PROCEDURE ___________________________________ 10
2.2 EXAMPLE FILES _______________________________________________ 10
2.3 STEP BY STEP MANUAL ________________________________________ 10
2.4 MAIN GRAPHICAL USER INTERFACE DESCRIPTION _____________ 12
2.5 VISUALISATION INTERFACE DESCRIPTION _____________________ 18
2.6 INPUT _________________________________________________________ 18
2.6.1 Data Array - Structure ___________________________________________ 18
2.6.2 Create a new structure input array __________________________________ 20
2.7 BATCH-FILES __________________________________________________ 20
2.8 HOW TO ADD NEW MODULES __________________________________ 21
3 AVAILABLE MODULES _____________________________________________ 24
3.1 VISUALISATION MODULES _____________________________________ 25
3.1.1 Input Data – PL_INPUT __________________________________________ 25
3.1.2 Model Output – PL_OUTPUT _____________________________________ 25
3.1.3 Actual Evapotranspiration – PL_AET _______________________________ 25
3.1.4 Confidence Limits – PL_CFL _____________________________________ 25
3.1.5 Residual Confirmation – PL_CONFIRMATION_______________________ 25
3.1.6 Double Mass – PL_DATACHECK _________________________________ 26
3.1.7 Flow Duration + Vol. Fit – PL_VFaFDC _____________________________ 26
3.1.8 Obs. Vs Calc. And Error – PL_MODELFIT __________________________ 26
3.1.9 Parameter Population – PL_MC ____________________________________ 26
3.1.10 Search Steps – PL_SCE ________________________________________ 27
3.1.11 Modelfit (Log Scale) – PL_LOGFIT ______________________________ 27
3.1.12 MCAT _____________________________________________________ 27
3.1.13 Threshold ___________________________________________________ 27
3.1.14 HMLE______________________________________________________ 27
3.2 OPTIMISATION MODULES ______________________________________ 27
3.2.1 Shuffled Complex Evolution Algorithm of the University of Arizona – SCE _ 27
3.2.2 Uniform Random Search – URS ___________________________________ 30
3.3 SOIL MOISTURE ACCOUNTING (SMA) MODULES ________________ 31
3.3.1 Catchment Wetness Index – SMA_CWI _____________________________ 31
3.3.2 Ye et al. Model Structure – SMA_YE1 ______________________________ 32
3.3.3 Penman – SMA_PEN ____________________________________________ 33
2
RRMT User Manual
3
RRMT User Manual
1 INTRODUCTION
1
INTRODUCTION
4
RRMT User Manual
1.4 ASSUMPTIONS
It is assumed that the user has a basic knowledge of the Matlab programming
environment. Explanations about how to use Matlab are kept to a minimum
within this manual.
The user is referred to the help documentation delivered with every Matlab
version or to the Mathworks website (http:\\www.mathworks.com) for more de-
tailed information. A large number of books about Matlab are also available.
Two examples are Etter, D.M. (1997): Engineering problem solving with Mat-
lab - 2nd Edition. Prentice-Hall, USA (for a first introduction) and Hanselman,
D. and Littlefield, B. (1998): Mastering Matlab 5 - A comprehensive tutorial
and reference. Prentice-Hall, USA (for the more advanced user).
5
RRMT User Manual
GUI
VISUAL ER
ANALYSIS P MOISTURE
ROUTING
MODULE T ACCOUNTING Q
MODULE
PET MODULE
OFF-LINE DATA
PROCESSING
MODULE MOISTURE STATUS
1.5 BACKGROUND
A Rainfall-Runoff Modelling Toolbox (RRMT) has been developed in
order to produce parsimonious, lumped model structures with a high level of
parameter identifiability. Such identifiability is crucial if relationships between
the model parameters representing the system and catchment characteristics
(e.g. dominant soil types, land use, etc.) are to be established. RRMT is a
modular framework that allows its user to implement different model structures
to find a suitable balance between model performance and parameter identifi-
ability. Model structures that can be implemented are lumped, relatively sim-
ple (in terms of number of parameters), and are of the conceptual or hybrid
metric-conceptual type (Wheater et al., 1993).
The architecture of the RRMT is shown in Figure 1. All structures con-
sist of a moisture accounting and a routing module. Available moisture ac-
counting modules are the Catchment Moisture Deficit (CMD, Evans and
Jakeman, 1998), and the Catchment Wetness Index (CWI) and its modifica-
tions which are all used in the IHACRES (Jakeman and Hornberger, 1993)
model structure, the Penman model structure (Penman, 1948) and its modifi-
cations, different modules using a probability distribution of moisture stores
(e.g. Moore, 1999) etc. The inputs into all modules are precipitation and tem-
perature or potential evapotranspiration time series. They produce an esti-
mate of the effective rainfall, i.e. that part of the rainfall that is contributing to
runoff. Some modules will also calculate estimates of actual evapotranspira-
tion and the moisture status of the catchment. Routing modules use the effec-
tive rainfall as input and translate it into streamflow. Available are different
combinations of conceptual reservoirs. The user also has to select an optimi-
sation module during calibration. Available modules are a uniform random
search (URS), a version of the shuffled complex evolution algorithm (SCE,
Duan et al., 1992). A variety of visual analysis modules can be selected to
view input data and results for further analysis. Off-line data processing mod-
6
RRMT User Manual
RRMT
STRUCTURE
CONTROLLER
ARRAY
Figure 2 The user can also communicate with the program by changing the structure array
and calling the controller function. He doesn’t have to use the main window. All information
and data required are stored in the structure array.
ules are a range of files which can be used outside the RRMT to, for example,
aggregate data from daily to monthly time steps.
1.7 PUBLICATIONS
The following publications contain information and application examples of the
RRMT:
Wagener T., Boyle D.P., Lees M.J., Wheater H.S., Gupta H.V., Sorooshian S. 2001. A
framework for the development and application of hydrological models. Hydrology Earth
System Sciences, 5(1), 13-26.
Wagener T., Lees M.J., Wheater H.S. 2001. A framework for the development and application
of parsimonious hydrological models. To appear in Singh, Frevert, Meyer (Eds.) Mathe-
matical models of small watershed hydrology – Volume 2. Wat. Resour. Publ. LLC: USA.
Wagener T., McIntyre N., Lees M.J., Wheater H.S. and Gupta H.V. 2003. Towards reduced
uncertainty in conceptual rainfall-runoff modelling: Dynamic identifiability analysis. Hydro-
logical Processes , 17, 2, 455-476.
7
RRMT User Manual
Wagener T., Lees M.J., Wheater H.S. 1999. A generic rainfall-runoff modelling toolbox. Eos.
Trans. AGU, 80(17), Fall Meet. Suppl., F203.
CONTROLLER
WORKFUN
SOIL MOISTURE
ACCOUNTING
ROUTING
OPTMET
(optional)
SRIV
(optional)
PERFORMANCE
Figure 3 The controller function calls workfun. Workfun combines SMA function, routing func-
tion and performance function. The returned output variables are the performance crite-
rion (objective function value), effective rainfall and internal state variables of the catch-
ment, i.e. catchment moisture status. The optimisation function placed in the optmet field
of the structure array is used as an interface between controller and workfun during the
calibration mode
8
RRMT User Manual
2 USER INSTRUCTIONS
2
USER
INSTRUCTIONS
9
RRMT User Manual
You will now be able to access the RRMT from the Matlab command window
without having to be in the RRMT directory.
10
RRMT User Manual
You have to press the Refresh button after you opened the file to see
the file contents in the edit fields.
(3) CHANGE THE SETTINGS OF THE MODELLING PROCEDURE
You can change the current settings by typing the new settings directly in the
edit fields. However, they will not be stored in the structure array.
(4) START THE CALCULATION
Press the Run button to start the calculation (calibration/validation/simulation).
(5) VISUALISE THE RESULTS
The numerical output of the calibration is plotted in the workspace window.
The best five calibration results are shown. The best result is at the top, then
decreasing downwards. Each column shows one parameter. The first columns
show the loss function parameters, followed by the routing parameters. The
last column shows the objective function (optimisation criterion) used. All ob-
jective functions are minimised during the calibration process!
You have to copy the parameter values from the workspace window
and paste them in the corresponding edit fields in order to validate the model.
WATCH OUT: Make sure that you copy and paste all parameter values
(loss function and routing) in one go! Otherwise RRMT can't recognise the pa-
rameters as one vector.
Select Visualisation Tools from the Menu option in the menu bar. The
visualisation tools window opens. Select the plots you want to see by select-
ing the checkboxes. Press the Show button to open the plots.
WATCH OUT: Only parameter values and objective function values are
stored during the calibration stage, not the calculated runoff time series. To
calculate runoff one has to select a certain parameter set and run the program
in validation ('val') mode.
(6) SAVE THE RESULTS
Select Save Structure Array from the Menu option in the menu bar. Type the
file name in the edit field and select the directory where you want to place the
file, followed by pressing the Save button.
(7) EXIT RRMT
Press the Exit button if you want to leave the RRMT. Type exit in the Matlab
command window to leave the program completely.
11
RRMT User Manual
GENERAL
Table 1 Description of ‘general’ field contents.
OPTIMISATION
Table 2 Description of ‘Optimisation’ field contents.
12
RRMT User Manual
ROUTING MODULE
Table 4 Description of ‘Routing Module’ field contents.
13
RRMT User Manual
14
RRMT User Manual
15
RRMT User Manual
SMA_CWI
• Tau Time constant of catchment losses [1 : 40]
• refp Reference parameter [0 : 10]
• mf Modulation factor [0 : 5]
• s(1) Initial s value (initial moisture state of catchment) [0 : 1]
• volc Volumetric constant (set boundaries from 0 to 0 during calibration)
SMA_CMD
• c1 Evapotranspiration parameter (Transfers temperature to PE) [0 : 1]
• c2 Evapotranspiration parameter (Transfers PE to AE by scaling the influence
of the catchment moisture deficit (cmd)) [0 : 0.1]
• c3 Maximum drainage while a cmd exists [0 : 10]
• c4 Maximum cmd before water ceases draining to stream [1 : 100]
• in. cmd Initial catchment moisture deficit
SMA_YE1
• tau Time constant of catchment losses [1 : 40]
• refp Reference parameter [0 : 10]
• mf Modulation factor [0 : 5]
• l Threshold value [0 15]
• p Power value [0 : 2]
• s(1) Initial s value (initial moisture state of catchment) [0 : 1]
• volc Volumetric constant (set boundaries from 0 to 0 during calibration)
SMA_PEN
• root con- Root constant [10 : 200]
stant
• in. def. Initial deficit upper store (size upper store = rc + 25)
SMA_IC1
• root con- Root constant [10 : 200]
stant
• bypass Bypass (default is 0.15) [0 : 0.25]
• in. def. Initial deficit upper store (size upper store = rc + 25)
• Drying Drying curve (default is 0.08) [0 : 0.2]
curve
SMA_PD3/4
• cmax Maximum storage capacity [0 : 500]
• b Shape of Pareto distribution [0 : 2.5]
• c(1) Initial critical capacity
R_CRES
• k Time constant [1 : 15]
• n Non-linearity parameter (a value of 1 is linear, lower values are non-linear)
R_2PAR
• k(q) Time constant quick flow reservoir [1 : 15]
• n(q) Non-linearity parameter (a value of 1 is linear, other values (usually <1) are
non-linear)
• k(s) Time constant slow flow reservoir [15 : x00]
• n(s) Non-linearity parameter (a value of 1 is linear, other values (usually <1) are
non-linear)
• %(q) Fraction of flow through quick flow reservoir [0 : 1]
R_3PAR
• k1 Time constant first reservoir [1 : 15]
• n1 Non-linearity parameter (a value of 1 is linear, other values (~<1) are n-l)
• k2 Time constant second reservoir [15 : x00]
Non-linearity parameter (a value of 1 is linear, other values (~<1) are n-l)
16
RRMT User Manual
17
RRMT User Manual
2.6 INPUT
2.6.1 Data Array - Structure
All necessary information and data are stored in a structure array. One can
imagine a structure array as a combination of post boxes. Each individual box
can be addressed by its name.
The structure array is basically split into two parts: the first part containing all
input data and information, and the second containing the output of the calcu-
lation(s). The first part can be viewed by typing structure.input in the Matlab
command window. The second by typing structure.output. Further information
about data handling is given in the Step by Step Manual.
18
RRMT User Manual
STRUCTURE INPUT
Table 6 Input fields of the structure array.
STRUCTURE OUTPUT
Table 7 Output fields of the structure array.
19
RRMT User Manual
model {mm/dt}
ofs [] Remaining objective functions
variables [] Variables calculated {depending}
flowsep [] Flow separated in quick and slow component
{mm/dt}
1
{} is unit, [ ] is numerical input, ' ' is character input
2
Only the objective function used for calibration
The user can then save the structure array using the Save structure array
from the menu command.
2.7 BATCH-FILES
Batch-files are very useful when a large number of calculations with changing
parameter boundaries, input data files, etc have to be performed.
The user can write an m-file loading the initial structure array into the work-
space, changing elements of the array if required and starting the calculation.
The results can be saved in a file defined by the user after the calculation has
terminated. The structure array can then be changed and a new calculation
can be started.
This can all be done in a single m-file. Large modelling jobs can be performed
without interference of the user.
20
RRMT User Manual
EXAMPLE
function batchjob;
load example1.mat;
structure.input.optmet =’urs’;
structure.input.samples=2000;
% etc.
[structure]=controller(structure);
structure.input.optmet =’sce’;
structure.input.complexes=10;
[structure]=controller(structure);
INPUT
OUTPUT
er effective rainfall
s catchment status (e.g. moisture deficit)
ae actual ET (set aet=0 if not calculated)
pars sma parameter(s)
21
RRMT User Manual
EXAMPLE
[er,dd,ae,pars]=sma_cmd(pars,r,t,et,f);
ROUTING MODULE
INPUT
OUTPUT
EXAMPLE
[cal_f,structure,r_par]=r_2par(r_par,er,structure);
INFO MODULE
Every loss function and every routing module requires a related info module to
provide the parameter names.
INPUT
OUTPUT
EXAMPLE
22
RRMT User Manual
[par_names]=info_r_2par(structure);
23
RRMT User Manual
3 AVAILABLE MODULES
3
AVAILABLE
MODULES
24
RRMT User Manual
The bottom graph is added to make it easier to spot regions with large uncer-
tainties. It shows the difference between upper and lower confidence limits,
normalised by the maximum difference between the two over the investigated
period of time, i.e.
UCFLi − LCFLi
∆CFLi =
max(UCFL − LCFL )
where
∆ CFL normalised difference between upper and lower confidence limit
UCFL upper confidence limit
LCFL lower confidence limit
max( ) maximum over time series
25
RRMT User Manual
The residual confirmation plot visualises the residuals with respect to these
assumptions.
Residuals versus
Four different plots are available in order to spot trends. These are residuals
versus observed and calculated flows (an increasing spread of the residuals
with increasing flow values indicates heteroscedasticity), residuals versus
rainfall, and residuals versus time. The last plot shows whether the data show
a trend to over- or underestimate the observed hydrograph. The number of
over- and underpredictions is also shown since it is sometimes difficult to spot
a tendency when many data points are available.
Normality
The blue histogram shows the distribution of the residuals. Normally distrib-
uted residuals would have a mean of zero and show a Gauss bell shaped
form.
Autocorrelation
Residuals that do not show autocorrelation (also called serial correlation)
would completely lie within the shown boundaries in 95% of the cases.
26
RRMT User Manual
3.1.12 MCAT
Starting the Monte Carlo Analysis Toolbox (MCAT) for further analysis of pa-
rameter identifiability and uncertainty (see MCAT manual for further informa-
tion). This option requires the specification of a threshold value.
3.1.13 Threshold
A threshold value has to be selected for some plots so that only parameter
sets which produce an objective function value below the selected one, i.e.
those which are better, are chosen for visualisation.
3.1.14 HMLE
The Heteroscedastic Maximum Likelihood Estimator is an objective function
based on a weighted least square approach in case the modelling residuals
show heteroscedascity, i.e. changing variance with changing flow values (see
chapter on objective functions). It is often excluded from the standard objec-
tive functions calculated during calibration, because its calculation is very time
consuming. The reason for that is that each calculation of the HMLE requires
the iterative optimisation of the lambda parameter (using the fmin function in
Matlab).
27
RRMT User Manual
The Shuffled Complex Evolution algorithm (Duan et al, 1992; 1993; 1994) is a
population-based search algorithm. An initial population is sampled from the
feasible parameter space. This population is then split into a number of com-
plexes and each complex is evolved using a deterministic simplex-based ap-
proach. The complexes are combined and sorted (the shuffling step) after
each iteration and new complexes are formed, which are then again individu-
ally evolved. This communication between the complexes allows a better in-
vestigation of the whole feasible parameter space. The steps of the algorithm
are described in Figures 6 and 7.
28
RRMT User Manual
A
SCE
Select q, α and
β, where 2≤q≤m,
α ≥1, β≥1
Set e=1
Assign triangular
probability distribution to A
Compute rs=2g-u(q)
(reflection step)
NO Generate point ms at
rs within Ω random in H (mutation step)
Set rs=ms
YES
Compute fr
YES
Set u(q)=rs, fq=frs fr<fq
NO
NO Generate point ms at
random in H (mutation step)
fcs<fq
Compute fz
Set u(q)=ms, fq=fms
YES
NO
Set j=j+1 j>α
YES
NO
Set e=e+1 e≥β
YES
SCE
Figure 8 Flowcharts showing the SCE-UA algorithm (A) and the CCE algorithm (B) which is
part of the SCE-UA.
29
RRMT User Manual
B
START
2
Sort s points in order of
decreasing performance
Store points in D
3
Partition D into p
complexes of m points,
i.e. D={A^k, k=1,2,...,p}
4
Evolve each complex CCE
A(k), k=1,2,...,p ALGORITHM
5
Shuffle complexes replace
A(k), k=1,2,...,m, into D
Sort D in order of
decreasing performance
6
Convergence
NO ?
YES
STOP
Figure 9 Flowcharts showing the SCE-UA algorithm (A) and the CCE algorithm (B) which is
part of the SCE-UA.
30
RRMT User Manual
s k −1 s k-1/c
rk rk cτ( t k )
s k/c
(also called rectangular) distribution. The user has to specify lower and upper
boundaries for each parameter.
The catchment wetness index loss function is used in the IHACRES model
structure introduced by Jakeman et al (1990). It has undergone various modi-
fications since then. The form used here is illustrated in Figure 10.
τ w (t k ) = τ ⋅ e mf ( refc −t k )
respectively
τ w (t k ) = τ ⋅ e mf ( refc − pet k )
where
τw the time constant (in days) of the catchment losses (i.e. the time it
takes for the catchment losses to decay to exp(-1) or 36,8% of their
peak value)
31
RRMT User Manual
s k-1/c
rk s k −1
rk cτ(t k ) s k/c
t the temperature in °C
mf parameter describing the effect of a unit change in temperature on the
loss rate
k the time step
⎧ 1 ⎫
s k = Vc rk + ⎨1 − ⎬ ⋅ s k −1
⎩ τ w (t k ) ⎭
where
s the catchment storage index or catchment wetness [0 : 1]
r the rainfall
Vc parameter describing the impact that a unit input of rainfall has on the
catchment storage
32
RRMT User Manual
% p peakiness factor
% s(1) initial value
% volc volumetric constant (set vc = 0 during calibration)
%r rainfall (mm/dt)
%t temperature (deg. C)
% et potential evapotranspiration (mm/dt)
%f flow (mm/dt)
%
% OUPUT
% er effective rainfall (mm/dt)
%s catchment wetness index
% dummy empty array
% pars contains as above
%
% M.Lees and T. Wagener, Imperial College, March 1999
%
% Reference: Ye W, Bates BC, Viney NR, Sivapalan M, Jakeman AJ 1997. WRR, 33, 153-166
Ye et al. (1997) introduced two additional parameters to the CWI loss function
described in an earlier chapter. This was necessary in order to model the be-
haviour of low-yielding ephemeral catchments which have different response
mechanisms than catchments in humid areas. The effective rainfall is now
calculated as follows,
uk =
1
(( s k + s k −1 ) − l ) p ⋅ rk if s k > l
2
uk = 0 otherwise
where
p a peakiness factor
The remaining equations are identical to the CWI loss function:
⎛ 1⎞
sk = Vc rk + ⎜⎜1 − ⎟⎟ sk −1
⎝ τk ⎠
τ k = τ ⋅ e f (R k −t k )
The equation for s k can also be written in the following form which makes it
easier to understand Figure 5:
sk s s
= rk + k −1 − k −1
Vc Vc V c ⋅ τ k
33
RRMT User Manual
Transpiration from a crop proceeds at the potential rate until the 'root reser-
voir' has been depleted. From that point about 25mm more water can be with-
drawn from the soil at close to the potential rate, before a change occurs and
transpiration proceeds at an actual rate that is about one twelfth of the poten-
tial.
The lower layer cannot be recharged until the surface layer has been re-
charged.
The loss function also has a bypass mechanism to account for the quick re-
sponse of the catchment. The bypass parameter φ determines the amount of
rainfall directly converted to runoff is usually fixed to 15% (to be used as a
value of 0.15) following recommendations by Mander and Greenfield (1978, in
Jolley 1995). However, it can be freely calibrated here.
The second parameter (next to the root constant) defining the form of the dry-
ing curve is the rate of depletion after the upper store is emptied (see Figure
2). A value of 0.08 is chosen for the parameter g (following Penman, 1949, in
Jolley, 1995), i.e. the actual evapotranspiration reduces to 1/12 of the poten-
tial. This parameter is fixed.
34
RRMT User Manual
ae k rk
uk2
Smax1
1
uk1 g
AE
Smax2 1
1
uk PE
Figure 12 A Schematic of the Penman loss function (left). Penman's soil drying curve is
shown on the right.
The model has only two free parameters, the root constant and the bypass
parameter, since all others are fixed to values which have found to be reason-
able for the UK.
Some values for the root constant proposed by Grindley (1969, in Sherratt
1985, p213 and *Rodda et al. 1976, p115) are shown in the table below
Beans/Brassica 56 100
Cereals 140 150
Grass (Permanent) 75 125
Grass (Temporary) 56 / 50* 100
Orchards (Commercial) 160 225
Orchards (Ornamental) 140 200
Root Crops 95 150
Rough Grazing 12 50
Woodland 200 / 100* 250
Beet 115* -
Potatoes 65* -
35
RRMT User Manual
The catchment moisture deficit approach used by Evans and Jakeman (1998)
is based on the following equation describing the water balance of the catch-
ment:
CMDk = CMDk −1 − Pk + Ek + Dk
where
CMD the Catchment Moisture Deficit
P the Precipitation
E the (actual) Evapotranspiration loss
D the drainage
k the time step
36
RRMT User Manual
ae k rk
c3
+
CMD c4 Dk
c2 ET parameter
The second part of equation four ( U k = Dk − CMDk ) can also be written as the
following, if equation 1 is considered:
U k = Dk − CMDk −1 + Pk − Ek − Dk
U k = Pk − CMDk −1 − Ek
The rainfall (minus the evapotranspiration losses) is therefore used to fill the
soil moisture store. Surplus rainfall is assumed to be effective rainfall.
After a calculation for one time step was made, CMDk has to be set to zero for
the next time step, in case the second condition (CMDk < 0) is true. If the rain-
fall in a time step is larger than the existing catchment moisture deficit, then
the surplus rainfall is ‘going to the stream’ and the saturated soil remains. The
catchment moisture deficit will then start to increase again in the next time
step, caused by evapotranspiration and drainage (if there is no precipitation
surplus in this time step, too).
37
RRMT User Manual
This structure is identical with the Penman model structure described earlier.
However, some of the usually fixed parameters can be calibration in this ver-
sion (see help text in green).
38
RRMT User Manual
R AE
U1
CM AX
U2
U
capacity
storage
c S
1 F(c) 0
% OUTPUT
% er effective rainfall (mm/dt)
% dummy empty array
% dummy empty array
% pars contains as above
%
% T. Wagener, Imperial College, October 1999
Selecting this function leads to the rainfall input directly send to the routing
component.
and
% SMA MODULE: PROBABILITY DISTRIBUTED MODEL 4
%
% [er,dd,ae,pars]=sma_pd4(pars,r,t,et,f);
%
% INPUT
% pars contains:
% cmax maximum storage capacity of catchment (mm)
% b degree of spatial variability of storage capacity in catchment
% c(1) initial critical capacity (mm)
%r rainfall (mm/dt)
39
RRMT User Manual
%t temperature (deg. C)
% et potential evapotranspiration (mm/dt)
%f flow (mm/dt)
%
% OUTPUT
% er effective rainfall (mm/dt)
% dd=[S]
% S total storage in catchment (mm)
% ae actual evapotranspiration (mm/dt), linear relation to moisture content
% pars contains as above
%
% T. Wagener, Imperial College, May 2001
%
% Reference: Moore (1999)
After rainfall is added to the component, i.e. its capacity, then the part of the
capacity exceeding the critical capacity (cmax) is the first contribution to the
effective rainfall, ER1 (see Figure 8)
The first part of the effective rainfall, u1, is subtracted from the rainfall and the
remaining part is added to the soil moisture store and redistributed between
the stores based on a Pareto distribution
Those stores that overflow produce the second part of the effective rainfall,
u2.
u 2 k = max(rk − ( sk − sk −1 ), 0)
40
RRMT User Manual
This module is a single conceptual reservoir which can either be used on its
own, or it can be called from other functions like r_2par and r_3par, which
combine a number of conceptual reservoirs in parallel manner. One reservoir
is usually sufficient for large time steps (at least weekly) or when a baseflow
component is absent. The most common structure uses two reservoirs in par-
allel (r_2par), one to represent quick and the other to represent slow catch-
ment responses.
A storage function can be defined to describe the relationship between
outflow of the reservoir and the amount of water stored,
S (t ) = a ⋅ Q n (t )
where S(t) is the storage [L] at time t, Q(t) is the outflow [L/T] at time t, a is the
storage coefficient [L1-nTn], and n is the coefficient of non-linearity [-].
Additionally a mass balance equation describes the change in storage S(t)/dt
[L] as the difference between inflow (u(t) [L/T]) and outflow (Q(t) [L/T]) rates,
S (t )
= u (t ) − Q(t )
dt
41
RRMT User Manual
This module can be used when the catchment contains a leaky aquifer, i.e.
part of the runoff is through the groundwater and therefore not contributing to
runoff. A similar structure can be found in Moore (1999), used there to model
snow. Parameters to be optimised are the two residence times and a thresh-
42
RRMT User Manual
effective rainfall
q3=(1/k 3)(h-h2)
q2=(1/k 2)(h-h1)
h2 h1
q1=(1/k 1)h
This module can be used if no routing is required. This could for example be
the case when large time steps are used (at least > 1 month). The calculated
flow then equals the effective rainfall.
43
RRMT User Manual
WATCH OUT: Missing flow values are often a problem. In the RRMT, (ob-
served) negative flow values are ignored. Therefore, set all missing values to
(small) negative values. In this way, they do not influence the resulting objec-
tive function values at all.
44
RRMT User Manual
∑ (o
i =1
i − c i (θ ))
2
NSE = 1.0 − N
∑ (o
i =1
i − o)
2
However, all objective functions in the RRMT have their optimum at a mini-
mum value. The objective function calculated is therefore
NSE* = 1 − NSE
From the first equation it can easily be seen that an NSE value of zero indi-
cates that the mean of the observed flow is an equally good predictor than the
simulated flow sequence.
NSE puts higher emphasis on fitting the peaks of a hydrograph due to the use
of squared residuals in its calculation.
∑i =1
∑
(oi − o )2 (ci (θ ) − c (θ ))2
i =1
45
RRMT User Manual
∑ (o − ci (θ ))
1
RMSE =
2
i
N i =1
It has the advantage that its values are in the same units as the data. Again,
the use of squared values emphasises the fitting of high flows.
∑ (o
i =1
i − c i (θ ))
ABIAS = N
∑o
i =1
i
in this form it is also called volume error (Seibert, 1999, p19). The measure is
implemented in OF_3_ABIAS.M in this form.
The measure can also be defined as mean error (Sorooshian et al., 1998) and
is then written as
N
∑ (o − ci (θ ))
1
BIAS = i
N i =1
∑ w (o − ci (θ ))
1 2
i i
N i =1
HMLE = 1/ N
⎡ N ⎤
∏
⎢ wi ⎥
⎣ i =1 ⎦
with the weights w being calculated as
2 (λ −1)
wi = f i
where f i is the expected true flow value. Sorooshian and Gupta (1995, p.29)
suggest to use the observed flow value as the expected true value. However,
they warn that this will lead to a biased transformation parameter λ . λ has to
be optimised in order to get a constant residual variance.
The following procedure (taken from Sorooshian and Gupta, 1995, p30) to es-
timate λ is developed by Duan (1991):
Rd
R= −1 = 0
Rh
46
RRMT User Manual
n
Rd = ∑ wi ε i2
i =1
n
Rh = ∑ wi ε i2 ai
i =1
ln f i
ai =
ad
1 n
ad = ∑ ln f i
n i =1
1
Rd
HMLE (θ ) = n
exp[2(λ − 1)ad ]
where
o observed flow
c calculated flow
n length of time series
θ parameter set
i time step
ε model residuals
w weight
f expected true flow value (the observed flow is used here)
λ unknown transformation parameter which stabilises variance
47
RRMT User Manual
DRIVEN NON
QUICK DRIVEN
QUICK
F NON-DRIVEN
F
L QUICK
L
MEAN
O O
FLOW
W W
MEAN
NON- FLOW / 2
DRIVEN DRIVEN SLOW DRIVEN NON DRIVEN
SLOW SLOW
TIME
TIME
A B
Figure 16 The two segmentation schemes implemented. Scheme A was introduced by
Boyle et al. (2001), while scheme B is found to be more suitable for catchments in the UK.
The objective functions are a function of the different response modes of the
hydrological system. The approach is based on the reasonable assumption
that the behaviour of the catchment is inherently different during periods
“driven” by rainfall and periods without rainfall. Further, the periods immedi-
ately following the cessation of rainfall and dominated by interflow can be dis-
tinguished from the later periods that are dominated by baseflow. The stream-
flow hydrograph can, therefore, be partitioned into three components (Figure
16A), "driven" (QD), "non-driven quick" (QQ), and "non-driven slow" (QS). The
time steps corresponding to each of these components are identified through
an analysis of the precipitation data and the time of concentration for the wa-
tershed. The time steps with non-zero rainfalls, lagged by the time of concen-
tration for the catchment, are classified as driven. Of the remaining (non-
driven) time steps, those with streamflow lower than a certain threshold value
(e.g., mean of the square-root of the flows) are classified as non-driven-slow,
and the rest are classified as non-driven-quick. The model performance during
these three periods (QD, QQ, and QS) is estimated by calculating the RMSE
(FD, FQ, FS) separately over each period.
48
RRMT User Manual
1.8
1.6
1.4
1.2
streamflow
1st derivative
1 zero line derivative
Driven
0.8
Non-driven Quick
0.6
Non-driven Slow
0.4
0.2
5 10 15 20 25 30 35 40 45 50 55
time step
Figure 17 Example of a segmented time-series using scheme B. High and low driven flows
are not separated in this figure though.
Driven flow (FD) occurs in this scheme when the observed flow is increasing,
plus an additional time-step to include the peaks, while time steps are classi-
fied as non-driven flow (FQ and FS) when the flow is decreasing. The split be-
tween FQ and FS is done using a threshold, here the mean flow. The classifi-
cation is based on the gradient (using the gradient command in Matlab) of the
observed streamflow hydrograph. The RMSE for each period is calculated.
OF_17_FDBL and OF_18_FDBH allow a further division of the driven re-
sponse during periods of high and of low flows. The division is based on a
threshold equal to half of the mean flow.
49
RRMT User Manual
∑ c (θ )
i =1
i
DRV = N
∑oi =1
i
⎧ yλ −1
⎪ for λ ≠ 0
y (λ ) = ⎨ λ
⎪⎩ ln( y ) for λ = 0
3.6.1 OF_FLOWCONVERT
This function converts flow from one unit into another.
% DATA MANIPULATION/ANALYSIS MODULE: converts flowdata to different units
%
% function outflow = flowconvert(inflow,iunit,ounit,area)
%
% INPUT
% inflow : flow data in the format avaliable
% iunit : unit of the input data
% ounit : unit of the output data
% area : catchment area [km2]
%
% OUTPUT
% outflow: flow data in the unit required
%
% Possible units: m3/s [1], mm/d [2], mm/h [3]
50
RRMT User Manual
3.6.2 OL_SUBAVER
This function converts data from a smaller time step to a larger one by calcu-
lating averages.
% DATA MANIPULATION/ANALYSIS: sub-samples flow
% data with mean
% value
%
% function y = subaver(u,dt)
%
% INPUT
% u data vector
% dt sub-sampling interval
%
% OUTPUT
% y new data vector
3.6.3 OL_SUBSUM
This function calculates the sum of data over a defined period.
% DATA MANIPULATION/ANALYSIS: sub summation
%
% function y = subsum(u,dt)
%
% INPUT
% u data vector
% dt subsampling interval
%
% OUTPUT
% y new data vector
51
RRMT User Manual
4 EXPERIMENTS
4
EXPERIMENTS
52
RRMT User Manual
53
RRMT User Manual
EVAPOTRANSPIRATION EXPERIMENT
Jolley (1995, p404) run the Penman model using constant input time series
and a range of Smax1 values during the second experiment. The experiment
shows the model response during dry periods.
R 0 mmd-1 Rainfall
PE 10 mmd-1 Potential ET
Smax1 0 to 100 mm Size upper store
Smax2 1000 mm Size lower store
φ 0.15 Bypass parameter
g 0.08 Drying curve parameter
D1 50 mm Initial deficit upper store
D2 0 mm Initial deficit lower store
54
RRMT User Manual
55
RRMT User Manual
n = 1 (linear)
n = 0.5
n = 1.5
input
Figure 21 Response of linear reservoir to a unit impulse using different residence times (or
time constants) is shown at the top. The influence of different values for the non-linearity
coefficient n on the response is visualised at the bottom.
56
RRMT User Manual
Figure 22 Response of a parallel linear reservoir system to a unit impulse using different
combinations of residence times.
flows (interflow), while the slow response can be associated with the subsur-
face or groundwater (baseflow) in the hydrological system.
Figure 18 shows the response of two parallel linear reservoirs to a unit im-
pulse, using different residence times.
PARAMETER VALUES
Top Middle Bottom
Residence time quick response 0.1 1.0 4.0
Residence time slow response 5.0 25.0 50.0
% flow through quick response 0.5 0.5 0.5
57
RRMT User Manual
5 REFERENCES
5
REFERENCES
58
RRMT User Manual
Bentura P.L.F. and Michel C. 1997. Flood Routing in a Wide Channel with a Quadratic Lag-
and-Route Method. Hydrological Sciences Journal, 42(2), 169-189.
Beven, K.J. 1998. Generalised Likelihood Uncertainty Estimation (GLUE) package v. 1.0 –
User manual. University of Lancaster, UK.
Beven K.J. and Binley A. 1992. The future of distributed models: Model calibration and uncer-
tainty prediction. Hydrological Processes, 6, 279-298.
Brazil, L.E. 1988. Multilevel calibration strategy for complex hydrologic simulation models.
PhD Dissertation, Colorado State University, Fort Collins, Colorado.
Camacho L.A. 1997. Extension of the QUASAR Water Quality Model to Incorporate Dead
Zone Mixing Concepts. MSc Thesis, Civil and Environmental Engineering Depart-
ment, Imperial College of Science, Technology and Medicine, London, unpublished.
Chow Ven Te, Maidment D.R. and Mays L.W. 1988. Applied Hydrology. McGraw-Hill, USA.
Clarke R.T. 1994. Statistical Modelling in Hydrology. John Wiley & Sons Ltd., UK.
Duan Q., Gupta V.K. and Sorooshian S. 1992. Effective and efficient global optimization for
conceptual rainfall-runoff models. Water Resources Research, 28(4), 1015-1031.
Duan, Q., Gupta V.K. and Sorooshian S. 1993. A Shuffled Complex Evolution Approach for
Effective and Efficient Global Minimization. Journal of Optimization Theory and Ap-
plications, 76(3), 501-521.
Duan, Q., Sorooshian, S. And Gupta, V.K. 1994. Optimal use of the SCE-UA global optimisa-
tion method for calibrating catchment models. Journal of Hydrology, 158, 265-284.
Etter D.M. 1997. Engineering problem solving with Matlab - 2nd Edition. Prentice-Hall, USA
Evans J.P. and Jakeman A.J. 1998. Development of a simple, catchment-scale, rainfall-
evapotranspiration-runoff model. Environmental Modelling & Software. To be pub-
lished
Evans, J.P., A.J. Jakeman, 1998. Development of a Simple, Catchment-scale, Rainfall-
evapotranspiration-runoff Model. Environmental Modelling & Software. To be pub-
lished
Forsythe G.E., Malcolm M.A. and Moler C.B. 1976. Computer Methods for Mathematical
Computations. Prentice-Hall, USA
Gan T.Y. and Biftu G.F. 1996. Automatic Calibration of Conceptual Rainfall-runoff Models:
Optimization Algorithms, Catchment Conditions, and Model Structure. Water Re-
sources Research, 32(12), 3513-3524.
Garrick M., Cunnane C. and Nash J.E. 1978. A criterion of efficiency for rainfall-runoff models.
J. Hydrol., 36, 375-381.
Goldberg D.E. 1989. Genetic Algorithms in Search, Optimization, and Machine Learning. Ad-
dison-Wesley Publishing Company, Inc., USA
Green C.S. 1979. An improved Subcatchment Model for the River Dee. Institute of Hydrology,
Wallingford, Rep. No. 58.
Hanselman D. and Littlefield B. 1998. Mastering matlab 5 - A comprehensive tutorial and ref-
erence. Prentice Hall, USA
Hughes D.A. and Murrell H.C. 1986. Non-linear Runoff Routing – A Comparison of Solution
Methods. J Hydrol., 85, 339-347.
Jakeman A.J. and Hornberger G.M. 1993. How much complexity is warranted in a rainfall-
runoff model? Water Resources Research, 29(8), 2637-2649.
Jakeman A.J., Littlewood I.G. and Whitehead P.G. 1990. Computation of the instantaneous
unit hydrograph and identifiable component flows with application to two small up-
land catchments. J Hydrol., 117, 275-300.
Jakeman A.J., Chen T.H., Post D.A., Hornberger G.M., Littlewood I.G. and Whitehead P.G.
1993. Assessing Uncertainties in Hydrological Response to Climate at Large Scale.
Macroscale Modelling of the Hydrosphere. Proceedings of the Yokohama Sympo-
sium, IAHS Publication, 214, 37-47.
Jolley T.J. 1995. Large-scale hydrological modelling – The development and validation of im-
proved land-surface parameterisations for meteorological input. Ph.D. Dissertation,
Imperial College of Science, Technology and Medicine. London, UK, Unpublished
Kleissen F.M., Beck M.B. and Wheater H.S. 1990. Identifiability of conceptual hydrochemical
models. Water Resources Research, 26(2), 2979-2992.
Laurenson E.M. 1964. A Catchment Storage Model for Runoff Routing. J Hydrol., 2, 141-163.
Lees M.J., Price N., Wheater H.S. and Peach D. 1998. A Rainfall-runoff Simulation Model for
South Galway, Ireland. In BHS 1998. Hydrology in a changing environment – Vol-
ume III, 93-104.
59
RRMT User Manual
Legates D.R. and McCabe G.J. Jr. 1999. Evaluating the use of "goodness-of-fit" measures in
hydrologic and hydroclimatic model validation. Water Resources Research, 35(1),
233-241.
Littlewood I.G. and Jakeman A.J. 1992. Methods of Hydrological Basin Comparison. Robin-
son M. (ed.). Methods of Hydrological Basin Comparison. Proceedings of the fourth
conference of the European network of experimental and representative basins, re-
port no. 120, 99-111.
Luce C.H. and Cundy T.W. 1994. Parameter Identification for a Runoff Model for Forest
Roads. Water Resources Research, 30(4), 1057-1069.
Mander and Greenfiled (1978) - see Jolley (1995)
Marsh T.J. 1999. Long River Flow Records. In Herschy R.W. (ed.). Hydrometry: Principles
and Practice. John Wiley & Sons Ltd., 161-180.
McCuen R.H. and Snyder W.M. 1986. Hydrologic modelling - Statistical methods and applica-
tions. Prentice-Hall, USA
Mein R.G., Laurenson E.M. and McMahon T.A. 1974. Simple Non-linear Model for Flood Es-
timation. J. Hydraul. Div., Am. Soc. Civ. Eng., 100(HY11), 1507-1518.
Moore, R.J. 1999. Real-time flood forecasting systems: Perspectives and prospects. In
Casale R. and Margottini C. (eds.). Floods and Landslides: Integrated risk assess-
ment. Springer-Verlag, Berlin, p. 147-189.
Moore R.J. 1992. Hydrological models - Nonlinear storage models. International Course for
Hydrologists, International Institute for Hydraulic and Environmental Engineering,
Institute of Hydrology, Wallingford, UK
N.E.R.C. 1979. Flood Studies Report. Vols. I – V, National Environment Research Council,
London, UK.
Nash J.E. and Sutcliffe J.V. 1970. River flow forecasting through conceptual models. I. A dis-
cussion of principles. J. Hydrol., 10, 282-290.
Penman H.L. 1949. The dependence of transpiration on weather and soil conditions. J Soil
Science, 1, 74-89
Rientjes T.H.M. and Boekelman R.H. 1998. Hydrological models. Lecture Notes, Civil Engi-
neering Department, Delft University of Technology, The Netherlands, Unpublished.
Rodda J.C., Downing R.A. and Law F.M. 1976. Systematic Hydrology. Newness-
Butterworths, London, UK
Sherratt D.J. 1985. Regional soil moisture modelling. Ph.D. Dissertation, Civil Engineering
Department, Imperial College of Science, Technology and Medicine, UK
Sherratt D.J. and Wheater H.S. 1984. The use of surface resistance - soil moisture relation-
ships in soil water budget models. Agricultural and Forest Meteorology, 31, 143-157
Sorooshian, S., Gupta, H.V. and Bastidas, L.A. 1998. Calibration of hydrologic models using
multi-objectives and visualisation techniques. Final Report on Project Proposal No.
EAR-9418147, University of Arizona, USA.
Sorooshian S. and Gupta V.K. 1995. Chapter 2 - Model Calibration. In Singh V.P. (ed.). Com-
puter Models for Watershed Hydrology. Water Resources Publications, USA, 23-68.
Sorooshian S., Duan Q. and Gupta V.K. 1993. Calibration of Rainfall-runoff Models: Applica-
tion of Global Optimization to the Sacramento Soil Moisture Accounting Model. Wa-
ter Resources Research, 29(4), 1185-1194.
Tanakamara H. 1995. Parameter Estimation for the Tank Model using Global Optimization.
Transactions of the JSIDRE, 178, 103-112.
Tanakamara H. and Burges S.J. 1996. Application of Global Optimization to Parameter Esti-
mation of the Tank Model. In: Proceedings of the International Conference on Water
Resources and Environmental Research: Towards the 21st Century, Kyoto, Japan,
29-31 October 1996, 2, 39-46.
Wagener, T., Lees, M.J. and Wheater, H.S. 2001a. A framework for the development and ap-
plication of parsimonious hydrological models. To appear in Singh, Frevert and
Meyer (Eds.) Mathematical models of small watershed hydrology – Volume 2. Wat.
Resour. Publ. LLC, USA.
Wagener T., Boyle D.P., Lees M.J., Wheater H.S., Gupta H.V., Sorooshian S. 2001. A
framework for the development and application of hydrological models. Hydrology
Earth System Sciences, 5(1), 13-26.
Wagener T., McIntyre N., Lees M.J., Wheater H.S. and Gupta H.V. 2003. Towards reduced
uncertainty in conceptual rainfall-runoff modelling: Dynamic identifiability analysis.
Hydro-logical Processes , 17, 2, 455-476.
60
RRMT User Manual
Wagener T., Lees M.J., Wheater H.S. 1999. A generic rainfall-runoff modelling toolbox. Eos.
Trans. AGU, 80(17), Fall Meet. Suppl., F203.Wheater H.S., Jakeman A.J. and
Beven K.J. 1993. Chapter 5 - Progress and directions in rainfall-runoff modelling. In
Jakeman A.J., Beck M.B. and McAleer M.J. 1993. Modelling change in environ-
mental systems. John Wiley & Sons Ltd, UK, 101-132.
Wilcox B.P., Rawls W.J., Brakensiek D.L. and Wright J.R. 1990. Predicting runoff from range-
land catchments: A comparison of two models. Water Resources Research, 26,
2401-2410.
Ye W., Bates B.C., Viney N.R., Sivapalan M., Jakeman A.J. 1997. Performance of conceptual
rainfall-runoff models in low-yielding ephemeral catchments. Water Resources Re-
search, 33(1), 153-166.
Ye, W., A.J. Jakeman, P.C. Young, 1998. Identification of improved Rainfall-runoff Models for
an Ephemeral Low-yielding Australian Catchment. Environmental Modelling & Soft-
ware, 13, 59-74.
Young P.C. 1992. Parallel Processes in Hydrology and Water Quality: A Unified Time-Series
Approach. J. IWEM, 6, 598-612.
Young P.C. 1985. The instrumental variable method: A practical approach to identification
and system parameter estimation. In Barker H.A. and Young P.C. (ed.). Identifica-
tion and system parameter estimation. 7th IFAC/IFORS Symposium, York, UK, 3-7
July 1985, 1-15.
Young, P.C., 1984. Recursive Estimation and Time-Series Analysis – An Introduction.
Springer-Verlag, New York.
Young P.C. and Beven K.J. 1991. Computation of the instantaneous unit hydrograph and
identifiable component flows to two small upland catchments. Comment. J Hydrol-
ogy, 126, 389-396.
Young, P.C., K.J. Beven, 1990. Comments on Computation of the Instantaneous Unit Hydro-
graph and Identifiable Component Flows with Application to two Small Upland
Catchments by A.J. Jakeman et al. Journal of Hydrology, 117, 275-300.
Young, P.C., K.J. Beven, 1994. Data-based Mechanistic Modelling and the Rainfall-flow Non-
linearity. Environmetrics, Vol. 5, 335-363.
61