I have two raster (raster1 and raster2) from the same area. I would like to make the sum between the two (raster3 = raster1 + raster2
) in QGIS, so that the Digital Number (DN) of raster 3 is the sum between them.
However, raster2 has some pixels like "nodata
" or "null
" without data. When I add them together, the "nodata" pixels do not add up.
For example: raster1 = 2
and raster2 = nodata
. When I add these, the result is nodata
(2 + nodata = nodata
), but I expected it to be = 2
, that is, (2 + nodata = 2
).
How could I solve this problem?