-
Hi, I have a function for raster mosaicking and normalized difference index computation:
Then I write the file to my computer:
Although the function works, the following message raises:
I included What am I missing? I'm using MODIS hdf scenes with this function. Also, If I save the values to integer datatype, I lose the NoData pixels resulting in 0 instead if Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The warning is informing you that when changing the nodata value to the rioxarray/rioxarray/raster_writer.py Lines 109 to 113 in 570150f This is likely due to loss of precision. I recommend selecting a nodata value appropriate for the datatype you are using. |
Beta Was this translation helpful? Give feedback.
-
Excellent, I modified the code and there is no warning message now:
Thank you! |
Beta Was this translation helpful? Give feedback.
The warning is informing you that when changing the nodata value to the
dtype
of you data, it is not equal to the original value:rioxarray/rioxarray/raster_writer.py
Lines 109 to 113 in 570150f
This is likely due to loss of precision. I recommend selecting a nodata value appropriate for the datatype you are using.