How to divide the subcatchment?

18 views
Skip to first unread message

zhangy...@gmail.com

unread,
Oct 27, 2020, 10:22:56 AM10/27/20
to CWatM

Hello all, I tried to understand the "routing_sub.py", but I failed. Does anyone tell me how to divide the sub-catchments? What variables should I put into the model? Thanks!

PeBu

unread,
Oct 28, 2020, 4:22:56 AM10/28/20
to CWatM
Dear zhangyu,

thanks for diving in so deep into the code.
The subcatchment procedure in routing_sub.py is a subprocedure of routing_kinematic.py to find out if a grid cell is a sub-catchment of another grid-cell.
The catchment and the sub-catchment procedures are used:
- to specify the catchment you want to model e.g. if you put a coordinate into MaskMap, the model calculates the catchment which belongs to that point
- to check the lake and reservoir map and dismiss cells in a lake/reservoir which has the same ID as the outlet point of a lake/res but are not in the same catchment.

Maybe you can explain what you want to do? What is your original problem?

Cheers,
Peter
Reply all
Reply to author
Forward
0 new messages