Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thank you for your help #11

Closed
Nullaha opened this issue Aug 31, 2019 · 2 comments
Closed

Thank you for your help #11

Nullaha opened this issue Aug 31, 2019 · 2 comments

Comments

@Nullaha
Copy link

Nullaha commented Aug 31, 2019

Thank you very much.
At first, my goal is to do an automatic calculation of the length of the glacier.
I was amazed when I saw your code on gihub and it inspired me.
So thank you.
I want to end with a question.
In the looking for the path step, whether it can be based on both the distance weight and the altitude value.
Thus, the path with the shortest cutting distance from low altitude to high altitude is obtained?

@ungarj
Copy link
Owner

ungarj commented Sep 2, 2019

Hi @Nullaha!

The tool creates a networkx.Graph in between so what you can do is to start from here and use one of the graph functions to do whatever you need to do with the graph: https://networkx.github.io/documentation/stable/reference/index.html

When reading the elevation values you can use rasterio and its sample() function to get the elevation value over a certain point: https://rasterio.readthedocs.io/en/latest/api/rasterio._io.html#rasterio._io.DatasetReaderBase.sample

@Nullaha
Copy link
Author

Nullaha commented Sep 19, 2019

Ok, thank you @Ungari!
i will keep trying.

@ungarj ungarj closed this as completed Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants