Hi Kris,
I agree, the documentation for this is completely absent. Here is an example of the system that worked for me. Start from the upstream reach of your mainstem to create the reaches. When you reach a confluence ("junction"), the next reach will be your tributary headwater reach (#4 in the example below). The locations are your river mileage (in km). The 0 in the "Location downstream" column seems to signify to the code that the next reach will be on the mainstem (or, a level-up tributary for more complex systems). The headwaters than need to be specified in the Headwater tab -- enter the reach numbers there in the order of reach numbers (in the example, #1 and #4). Verify all numbers if you're still getting errors, I wasted a lot of time at the beginning because my headwater reach number was mistyped in the Headwater tab.
I had problems executing the code when I had more than one element specified for the "junction" reach (#7 in the example). I had also issues for reaches with dams, those required only one element in my case also.
Hope this works,
Alena
Example below: headwater reaches are in bold, tributary reaches are highligted in orange, the junction reach in green.
|
|
|
|
Stream |
Reach number |
Location upstream |
Location downstream |
Mainstem |
1 |
50 |
40 |
Mainstem |
2 |
40 |
30 |
Mainstem |
3 |
30 |
25 |
Tributary 1 |
4 |
35 |
20 |
Tributary 1 |
5 |
20 |
5 |
Tributary 1 |
6 |
5 |
0 |
Mainstem |
| 7 |
| 25 |
| 15 |
Mainstem |
8 |
15 |
0 |