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

rd.rdShow() raises value error: cannot convert float NaN to integer #42

Open
SaddamAliKhokhar opened this issue Mar 30, 2021 · 1 comment

Comments

@SaddamAliKhokhar
Copy link

SaddamAliKhokhar commented Mar 30, 2021

Hello,

I downloaded DEM from Google earth engine as tiff files and loaded it in richdem, when I try to print rdarray with rd.rdShow(dem), it raises value error: cannot convert float NaN to integer. Even I type casted all values in my DEM to to int type, filled all nan values with -9999 and reset dem.no_data to -9999, but still it is raising same error. When I use matplotlib imshow to print it then it works very good. I do not know why rd.rdShow() is not working. Please see in picture below;
Richdem

Kindly help. Thanks

@jaimebayes
Copy link

Still not answer...I got the same error.
Anybody here?

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