C:\Users\xueke\AppData\Local\Programs\Python\Python310\lib\site-packages\xarray\core\duck_array_ops.py:188:
RuntimeWarning: invalid value encountered in cast
return data.astype(dtype, **kwargs)
This RuntimeWarning only appears when clipping uint8 data, not when I try to clip a DEM data (dtpye=int16).
Even though this warning exists, I don't see anything unusual about the clipped data, and I'm more curious about why this warning exists.
Code Sample, a copy-pastable example if possible
Below is information about
rgb_xds
output using IpythonProblem description
This RuntimeWarning only appears when clipping uint8 data, not when I try to clip a DEM data (dtpye=int16).
Even though this warning exists, I don't see anything unusual about the clipped data, and I'm more curious about why this warning exists.
Expected Output
Environment Information
Installation method
pypi