Using ArcGis 10.4
I have suceeded in calculating "maximum upstream river distance to its reach per subcatchment" per subcatchment with the help of this forum (see Calculate river distance to headwater for every pixel?).
Now I additionally need the length of the river stretch within each subcatchment. My idea was to just calculate the minimum upstream distance to its reach and then deduct this from the previous maximum distance. But it doesnt work, I run into multiple problems when joining them later. So I was thinking, zonal statistics as table should do the trick. But it doesnt work either.
Any other idea how I could calculate that?