Replies: 1 comment 4 replies
-
@wxinl if you wouldn't mind making these changes, it would better enable us to help you:
Also, what were the values contained by UPDATE: dem_rx.encoding
Since you have a different dtype, you need to do: dem_rx.encoding = {} Then it should work as expected, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used the rioxarray to read a dem tiff, then I tried to replace the raster values with a numpy array of the same shape and output the raster with replaced values using rio.to_raster. But when I read the new file, the values are all 0s. Image attached.
Beta Was this translation helpful? Give feedback.
All reactions