Get most upstream nodes that fulfill condition #46
-
I want to locate the most upstream points in a stream network where several conditions from rasters are fulfilled. Below is some dummy code to illustrate the problem:
Now how would I find the most upstream IX_candidate along every flowpath efficiently? Seems easy but I couldn't come up with a simple way that didn't involve looping over flowpaths. And I'd like to avoid looping over flowpaths because this needs to be computed for a large area. Ideas appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Richard,
The approach requires one scan in downstream direction and is reasonably fast. Hope this solves the issue. |
Beta Was this translation helpful? Give feedback.
Hi Richard,
I think there's no function right now to do this (but we could add one, if needed). However, here's a solution: