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

Cannot replicate the example using 'elevation.tiff' #211

Open
jddratli opened this issue Jan 19, 2023 · 3 comments
Open

Cannot replicate the example using 'elevation.tiff' #211

jddratli opened this issue Jan 19, 2023 · 3 comments

Comments

@jddratli
Copy link

jddratli commented Jan 19, 2023

ElevationExample
I am just getting started with pysheds and I am trying to replicate the example that is posted, but I get different results for the flow direction, accumulation, catchment delineation and river network extraction. I have essentially copied and pasted the script into my own Jupyter notebook, so I am confused as to why. I have attached images of the results that I get. The code is the same as the example code on the ReadMe page. If someone can help me out, I would be greatly appreciative.

-John

@philippkraft
Copy link
Contributor

Looks like you forgot to fill pits and depressions and resolve flats. If I leave them out I get the same picture as you.

# Condition DEM
# ----------------------
# Fill pits in DEM
pit_filled_dem = grid.fill_pits(dem)

# Fill depressions in DEM
flooded_dem = grid.fill_depressions(pit_filled_dem)
    
# Resolve flats in DEM
inflated_dem = grid.resolve_flats(flooded_dem)

@mdbartos
Copy link
Owner

mdbartos commented Feb 9, 2023

Thanks @philippkraft!

@jddratli
Copy link
Author

jddratli commented Feb 9, 2023 via email

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

3 participants