SouthForkResearch / pyGNAT

Geomorphic Network and Analysis Toolbox, redesigned using FOSS python libraries.
MIT License
2 stars 0 forks source link

Identify incorrect flow direction #3

Closed jesselangdon closed 7 years ago

jesselangdon commented 7 years ago

Each stream reach show know which adjacent reaches are upstream.

Required for:

MattReimer commented 7 years ago

This one sounds kind of fun.

We discussed directed graphs other issues like: https://github.com/SouthForkResearch/pyGNAT/issues/7

I think all we have to do here is the same kind of thing and then compare adjacent nodes to see if there's a problem then flag all the problems.

jesselangdon commented 7 years ago

I found an interesting tool built for shapefile networks called nx_spatial. Looks like he wrote a script related to finding flow directions. Might be worth checking out.

jesselangdon commented 7 years ago

I think I've found a way to find stream segments (i.e. graph edges) with an incorrect flow direction.

https://github.com/SouthForkResearch/pyGNAT/commit/d2a358fc74d0aa22f89fdf10851d808f9057d8ba