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

Expose PriorityFloodWatersheds_Barnes2014 to Python #54

Closed
wants to merge 1 commit into from

Conversation

feefladder
Copy link

What the title says. nothing more, nothing less.

@giswqs maybe mentioned this in #53

I ran the following test script:

import richdem as rd
import numpy as np

dem = rd.rdarray(np.array([
    [1,2,3,4,5],
    [1,2,3,4,5],
    [1,2,3,4,5],
    [1,2,3,4,5],
    [1,2,3,4,5],]),no_data=0)

print(rd.LabelWaterSheds(dem))

with output:

[[ 1  6  9 11 16]
 [ 5  1  6  6 13]
 [ 2  2  2  6 15]
 [ 3  2  2  8 12]
 [ 4  7  8 10 14]]

which is a bit weird because of flat areas in my sample dem, but shows that it works.

@feefladder
Copy link
Author

So I found out that I'm on a wayy too old version.. closing now

@feefladder feefladder closed this Jun 3, 2022
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

Successfully merging this pull request may close these issues.

1 participant