I am trying to patch two rasters with the raster calculator but I am not finding a way to work with no-data values.
Lager@1
has some information I need as the first option, this has no-data -9999 (reading in the properties)Lager@2
has the information I want to complete what is no data inLager@1
This command does not produce values where Lager@1
is no-data
("Large@1" != -9999) * "Large@1" + ("Large@1" = -9999) * "Lager@2"
I would like to avoid or skip the reclassification because I might have many zeros and I need to perform this with different rasters that might have different no-data formats, for instance, Lager@2
has -99999 instead of -9999.
In GRASS this would be an r.patch
task, but I cannot (or I do not know how to) control the order in the r.patch available in the Processing Toolbox.
r.patch input=Lager@1, Lager@2 output=Lager@3
processing.run("grass7:r.patch", {'input':...
in the console. It worked, but it was not so frinedly as I would love QGIS to benodata
values to0
. I don't know of a direct way, see: gis.stackexchange.com/q/420195/88814