Skip to content

Commit 8dad10c

Browse files
authored
Merge pull request #544 from nmizukami/cesm-coupling_doc1
user guide update - take 2
2 parents 650e89f + 7028b8a commit 8dad10c

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

docs/source/Input_data.rst

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
Input data
33
=================
44

5-
mizuRoute expects 2 or 3 input data depending on how runoff data is provided.
5+
mizuRoute expects 2 or 3 input data depending on how runoff data is provided for river routing (more needed if activating lake, water management, solute transport, gauge data).
6+
This section describe input data required for river routing without those advanced features.
7+
68
If runoff data is provided at each river network HRU (RN_HRU), river network data and runoff data are expected.
79
Otherwise, mizuRoute needs to remap runoff at hydrologic model HRU (HM_HRU) to river network HRU with areal weight averaging.
810
In this case, one additional data, remapping data, is required. All the data need to be stored in netCDF.
@@ -45,7 +47,7 @@ Minimum variables required
4547
+------------+------------+-----------+-------+---------------------------------------------+
4648
| area | hru | m2 | real | hru area |
4749
+------------+------------+-----------+-------+---------------------------------------------+
48-
| slope | seg | ``-`` | real | slope of segment |
50+
| slope | seg | ``-`` | real | slope of segment (elevation drop/length) |
4951
+------------+------------+-----------+-------+---------------------------------------------+
5052
| length | seg | m | real | length of segment |
5153
+------------+------------+-----------+-------+---------------------------------------------+
@@ -71,9 +73,9 @@ Dimensions
7173
+--------+-----------+---------------------------------------------+
7274
| 1 | RN_HRU | river network catchment or HRU dimension |
7375
+--------+-----------+---------------------------------------------+
74-
| 2 | HM_HRU | hydrologic model catchment or HRU dimension |
76+
| 2 | HM_HRU | hydrologic model catchment or HRU dimension |
7577
+--------+-----------+---------------------------------------------+
76-
| 3 | i | x direction dimension |
78+
| 3 | i | x direction dimension |
7779
+ +-----------+---------------------------------------------+
7880
| | j | y direction dimension |
7981
+--------+-----------+---------------------------------------------+
@@ -87,13 +89,13 @@ Variables
8789
+--------+-----------+--------------+--------------------------------------+-------+-------------------------+
8890
| 1 | RN_hruID | RN_hru | ``-`` | int | river network HRU ID |
8991
+--------+-----------+--------------+--------------------------------------+-------+-------------------------+
90-
| 2 | HM_hruID | HM_hru | ``-`` | int | hydrologic model HRU ID |
92+
| 2 | HM_hruID | HM_hru | ``-`` | int | hydrologic model HRU ID |
9193
+--------+-----------+--------------+--------------------------------------+-------+-------------------------+
9294
| 1 | runoff | time, RN_hru | [length-unit]/[time-unit] | real | total runoff |
9395
+--------+ +--------------+ + + +
94-
| 2 | | time, HM_hru | | | |
96+
| 2 | | time, HM_hru | | | |
9597
+--------+ +--------------+ + + +
96-
| 3 | | time, i, j | | | |
98+
| 3 | | time, i, j | | | |
9799
+--------+-----------+--------------+--------------------------------------+-------+-------------------------+
98100

99101
Attributes: Time variable need at least 2 attributes- *units* and *calendar*. Four types of calendar can be handled. These are noleap, standard, gregorian, and proleptic_gregorian.
@@ -102,7 +104,7 @@ Time unit format is shown in the table.
102104
Runoff mapping data
103105
-------------------
104106

105-
For runoff input options 2 and 3, runoff mapping data, also in netCDF format, is necessary to compute runoff value for each river network HRU
107+
For runoff input options 2 and 3, runoff mapping data in netCDF must be provided so that weighted average runoff value is computed for each river network HRU.
106108

107109
+--------+-----------+---------------------------------------------+
108110
| Option | Dimension | Description |
@@ -125,8 +127,20 @@ Required runoff mapping netCDF variables
125127
+--------+------------+-----------+-------+-------+-----------------------------------------------+
126128
| 2 | HM_hruId | data | ``-`` | int | ID of overlapping HM_HRUs |
127129
+--------+------------+-----------+-------+-------+-----------------------------------------------+
128-
| 3 | i_index | data | ``-`` | int | i direction index overlapping grid boxes |
130+
| 3 | i_index | data | ``-`` | int | i direction index overlapping grid boxes |
129131
+ +------------+-----------+-------+-------+-----------------------------------------------+
130132
| | j_index | data | ``-`` | int | j direction index overlapping grid boxes |
131133
+--------+------------+-----------+-------+-------+-----------------------------------------------+
132134

135+
Creating a mapping is basically GIS intersection of two geometries. The figure below visualizes intersection between runoff grid (option 3) and river network catchment (HRU) polygons.
136+
This example (right bottom) shows river network HRU, c\ :sub:`k`\, has 11 overlapping grid boxes (nOverlaps=11 in a mapping netCDF. see table above) and corresponding weights (i.e., fractions of each overlapped grid boxes to total area of c\ :sub:`k`\) as well as i_index and j_index.
137+
In a mapping netCDF, all 1D arrays of weights (and i_index and j_index) from each HRU are combined for a large single 1D array. The order of the arrays from each HRU must match the order of RN_hruId
138+
139+
.. image:: images/mapping_schematic.png
140+
:width: 600
141+
142+
There are a few tools available to create the netCDF with required data:
143+
144+
#. mizuRoute_remapping (https://github.com/ShervanGharari/mizuRoute_remapping)
145+
146+
744 KB
Loading

0 commit comments

Comments
 (0)