I have the following files to work with:
- Stream network of a basin;
- Outlet points for each segment* of the network and
- Points which represent water withdrawals along of the stream, which are not located in the stream, but near of segments.
*segment = a line with a start point and an outlet point.
My goal is to calculate the sum of withdrawals located upstream of each outlet points.
My first attempt was using model builder, iterating over each outlet point. For each of them, I delineated the watershed and calculated the sum using Zonal Statistics (summing withdrawals contained by the watershed). But it didn't work well because ArcGIS aren't calculating watershed properly. I do not know why…
I'm wondering if I can figure out how to select directly upstream watersheds each iteration, assuming I've already obtained a feature containing the watersheds for each segment.
NOTICE: I don't want to find the watershed for each segment. I want to find the watershed for each outlet point. That's more comprehensive.
Best Answer
Assuming that each withdrawal point is related to the closest stream segment, we can do the following:
Python
).And example of IDing the segments using Python.
Once I get a bit of time later I'll come back and update this answer with a bit of script to build a network using networkx to help sum the values...
Hope this helps!