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

Why stream network LineStrings do not pass through the centroid of each grid cell? #237

Open
kasra-keshavarz opened this issue Nov 22, 2023 · 1 comment

Comments

@kasra-keshavarz
Copy link

kasra-keshavarz commented Nov 22, 2023

Problem

I've noticed that the build stream network in pysheds v0.3.5 does not cross the centroid of each grid cell (only if crossing diagonally), and uses the side of the cell. This is a bit of a pain, as it lowers the ability to overlap the stream network with any of the raster layers produced during the delineation process, and therefore, limits further analysis.

Examples

The following is an example of a stream network built using pysheds:
image

TauDEM as an instance, builds stream networks that pass through the centroid of each grid cell. Below is an example of a stream network built with TauDEM:

image

Question

Is there an option in pysheds that I can control this behaviour?

@kasra-keshavarz kasra-keshavarz changed the title Why stream network LineStrings does not pass through the centroid of each grid cell? Why stream network LineStrings do not pass through the centroid of each grid cell? Nov 22, 2023
@kasra-keshavarz
Copy link
Author

Just noticing #110

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

1 participant