-
I want to calculate an index map that is the substraction/addition of two different bands (I'll use Sentinel-2 2A images). I found in stackoverflow that this can be archieved by doing:
This code works perfectly. However, I need to construct an index map where one band is 10m resolution and the other is 20m. Since both images refer to the same area, I introduced:
However, this code is producing me a warning and an error.
How can I fix it? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You may be interested in Also, you may want to write your metadata nodata value as xds.rio.write_nodata(numpy.nan, inplace=True) |
Beta Was this translation helpful? Give feedback.
You may be interested in
rio.reproject_match
: https://corteva.github.io/rioxarray/stable/examples/reproject_match.htmlAlso, you may want to write your metadata nodata value as
NaN
if that is what you expect it to be: https://corteva.github.io/rioxarray/stable/getting_started/nodata_management.html