TopoToolbox / pytopotoolbox

Python interface to TopoToolbox
https://topotoolbox.github.io/pytopotoolbox/
GNU General Public License v3.0
1 stars 2 forks source link

Add Identifyflats #24

Closed Teschl closed 2 months ago

Teschl commented 2 months ago

Implements identifyflats for the GridObject. To be able to use this function efficiently when creating the FlowObject I added an argument raw to just return the ndarray.

Since there is no way of making a function private in python, I think it's important to still add a function that returns multiple GridObjects. By using the output argument, the number of returned dems can be changed.

image

When using dem.identifyflats(raw=True) instead of multiple GridObject the return will be an int32_t nd.ndarray. This also contains presills.

image

Closes #22

Teschl commented 2 months ago

Adjusted the documentation and resolved the merge conflict, should be ready to be merged now. @wkearn