The XML input deck is the XML implementation of the free format input deck.
The XML input deck Document type defination (DTD) is given at the end of
this file. It is recommended to include the DTD at the beginning of your XML
input deck. With DTD, the XML parser can validate your XML input deck.
The contents (items) of the entire input deck are enclosed by the tag
Inside the , there could be the following items:
1) Period --- should have excatly one occurrence,
2) TimeStepInHour --- should have exactly one occurrence,
3) StateOutStep --- should have exactly one occurrence,
4) RoutingOutStep --- should have exactly one occurrence,
5) OutDir --- should have exactly one occurrence,
6) ParamDir --- should have exactly one occurrence,
7) XmrgDir --- should have exactly one occurrence,
8) SeqFile --- optinal, should have no more than one occurrence,
9) window --- optinal, should have no more than one occurrence,
10)subWindow --- can have arbitrary number of occurrence,
11)runOffModelInfo --- should have exactly one occurrence,
12)routingModelInfo--- optinal, should have no more than one occurrence,
13)snowModelInfo --- optinal, should have no more than one occurrence,
14)frzGrdInfo --- optinal, should have no more than one occurrence,
15)BasinInfo --- should have at least one occurrence,
A. The document
1. The item of defines the simulation period. It has
a tag and a tag, each has three items,
, , and
This item is not optional. Every input deck must have exactly one
tag
Example:
1998
10
1
0
1999
4
30
23
The simulation period is Oct. 1, 1998 0 to Apr. 30, 1999 23.
2. The item specifies simulation time step.
The unit must be in hours.
This is not optional. Every input deck must have
exactly one tag.
Example:
6
The simulation time step is 6 hours.
3. The item specifies how often the runoff states
are going to be output in XMRG parameter grid format. It is in number of
time steps.
This is not optional. Every input deck must have
exactly one tag.
Example:
2
The runoff states are going to be output every 2 time step. That is every
12 hours, if the simulation time step is 6 hours.
4. The item specifies how often the routing
states are going to be output in XMRG parameter grid format.
It is in number of time steps.
This is not optional. Every input deck must have exactly one this tag.
Example:
2
The routing states are going to be output every 2 time step. That is every
12 hours, if the simulation time step is 6 hours.
5. The item specifies the output directory. Every output
file is going to be written to this directory.
This is not optional. Every input deck must have exactly one this tag.
Example:
/tmp/hwbasin_frz
6. The item specifies where the parameter files are
going to be read.
This is not optional. Every input deck must have exactly one this tag.
Example:
/fs/hsmb/hydro/rms/parameterslx/marfc
7. The item specifies where the XMRG precipitation files
are going to be read.
There are three attributes in this item, "YearDigits", "isBigEndian" and
"lumped".
"YearDigits" specifies how many characters donating year in the XMRG file
names. It is either 4 and 2. The default value is 4.
"isBigEndian" specifies whether the XMRG files were created on a big endian
machine. It is either "true" or "false". The default value is "true".
This is not optional. Every input deck must have exactly one this tag.
"lumped" specifies whether using lumped lumped precipitation. It is either
"true" or "false". The default value is "false". If it is "true", the
pricipitation will be averaged over each selected basin. The averaged
value is going to be used for each pixel inside the basin.
This is not optional. Every input deck must have exactly one this tag.
Example:
/fs/hsmb/hydro/rms/parameterslx/abrfc4x4
8. The item specifies the sequential file.
This is optional. Every input deck may have at most one this tag.
Example:
/fs/hsmb/hydro/users/vkoren/devl/spk4x4.con
9. The item specifies the runoff model. It
has three attributes, "name", "GridNum", "ParNum" and "StateNum".
"name" gives the name of the runoff model. It could be "SAC_SMA" or "API".
The default is "SAC_SMA".
"GridNum" gives the number of grids that will be used to define actual model
parameters. The default value is 17.
"ParNum" gives the actual number of runoff model parameters. For SAC-SMA
"ParNum" is the same as "GridMum" because there is no any
grid transformation procedures. The default value is 17.
"StateNum" gives the number of runoff model states. The default value
is 6.
This is not optional. Every input deck must have exactly one this tag.
Example:
10.The item specifies the routing model.
It has three attributes, "name", "GridNum", "ParNum" and "StateNum".
"name" gives the name of the routing model. Currently, only routing one
model is supported by HLRMS. That is "KINEMATIC".
The default is "KINEMATIC".
"GridNum" gives the number of grids that will be used to define actual model
parameters. The default value is 9.
"ParNum" gives the actual number of routing model parameters. The default
value is 3.
"StateNum" gives the number of runoff model states. The default value
is 2.
This is optional. Every input deck may have at most one this tag.
Example:
11.The item specifies the snow model.
It has three attributes, "name", "GridNum", "ParNum" and "StateNum".
"name" gives the name of the snow model. Currently, only one snow model is
supported by HLRMS. That is "SNOW17".
The default is "SNOW17".
"GridNum" gives the number of grids that will be used to define actual model
parameters. The default value is 25.
"ParNum" gives the actual number of snow model parameters. The default
value is 25.
"StateNum" gives the number of snow model states. The default value
is 19.
This is optional. Every input deck may have at most one this tag.
Example:
12.The item specifies the frozen ground model.
It has three attributes, "name", "GridNum", "ParNum" and "StateNum".
"name" gives the name of the snow model. Currently, only one frozen ground
model is supported by HLRMS. That is "FRZ".
The default is "FRZ".
"GridNum" gives the number of grids that will be used to define actual model
parameters. The default value is 5.
"ParNum" gives the actual number of frozen ground model parameters.
The default value is 14.
"StateNum" gives the number of frozen ground model states. The default
value is 10.
This is optional. Every input deck may have at most one this tag.
13. The item specifies a simulation domain in latitude and
longitude. There are four items, left, right, top and bottom,
conresponding to left boundary longitude, right boundary longitude, top
boundary latitude and bottom latitude.
This item is optional. However, if there is no sequential file, this item
must present. That is simulation without routing.
Example:
100.648
100.507
34.9101
34.8106
14. The item specifies sub windows inside the domain
specified in the item.
This item is optional and can be used to generate sub-area averages of
states/variables. Number of this item can be arbitrary. Subwindows
defined by this item must be inside the domain defined by the
item.
Each subwindow has a and a item.
Example:
RegionA
100.61
100.538
34.885
34.8356
RegionB
100.31
100.238
34.885
34.8356
15. The item specifies outlet IDs from the sequential
file and multiplication factors for model parameters and states.
Multiplication factors could be positive or negative. Positive value means
replacement of grid value (parameter or state), and negative means
multiplication of grid value by the absolute value of this factor. Basin
selection depends on needs of output hydrograph or scaling states or
parameters for selected sub-basin.
This item is not optional. There should be at least one this item in an
input deck.
If the basin ID in the first item is
"-999", it means that do runoff simulation without routing on a given
domain defined by the item. The rest
items are ignored.
Every instance of this item must have a item to
give the basin ID.
It also may contain the following items:
1)IPRF --- runoff model parameters
2)ISRF --- runoff model states
3)IPRT --- routing model parameters
4)ISRT --- routing model states
5)IPSN --- snow model parameters
6)ISSN --- snow model states
7)IPFZ --- frozen ground model parameters
8)ISFZ --- frozen model states
9)IPE --- monthly PE
10)IPEA --- monthly PE adjustment
11)PXADJ --- precipitation adjustment factor
12)IUH --- unit hydrograph for this basin
13)IPRG --- generate routing parameters only. If this item presents,
the routing parameter specified in this item will be
generated and the program stops without any simulations.
Each item of 1) to 10) has a name item and a value item. The
item gives the name of the parameter or state. The item
gives the value of that parameter or state.
Itmes listed above are optional. Each instance of
item can have arbitrary number of these items in any order.
Example:
TEST4
UZTWM -1.0
UZFWM -1.0
UZK -1.0
PCTIM 0.001
ADIMP 0.0
RIVA 0.001
ZPERC -1.0
REXP -1.0
LZTWM -1.0
LZFSM -3.0
LZFPM -1.0
LZSK -1.0
LZPK -1.0
PFREE -1.0
SIDE 0.0
RSERV 0.3
SLOPC -1.0
ROUGC -1.0
BETAC -1.0
ALPHC -1.0
SLOPH -1.0
DS -1.0
ROUGH -1.0
Q0CHN -0.8
QMCHN -0.98
uztwc 0.75
uzfwc 0.14
lztwc 0.56
lzfsc 0.11
lzfpc 0.46
adimpc 1.0
areac 5.0
depth 0.0
1.5
4.5
9.5
15.5
12.0
6.5
2.0
2.5
4
8
0.195
1.263
B. The Document Type Defination (DTD)
The input deck DTD are defined in the file InputDeck.dtd.
C. About XML
1. Everything between is a comment
2. In fact, every XML should include a header in the beginning - the XML
declaration - defines the XML version and the character encoding used in
the document.
For example,
In this case the document confirms to the 1.0 specification of XML and
uses the ISO-8859-1 (Latin-1/West European) character set.
3. The DTD file, InputDeck.dtd, for input deck can be include using the
following XML command: