r-barnes / richdem

High-performance Terrain and Hydrology Analysis
GNU General Public License v3.0
272 stars 70 forks source link

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

Open SaddamAliKhokhar opened 3 years ago

SaddamAliKhokhar commented 3 years ago

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 commented 1 year ago

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