I have 2 rasters of the same area, one has some null pixels and the other one doesn't and I would like to fill in the nulls in raster 1 by values from raster 2.
How to perform in raster calculator?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Raster calculator, there is an important first step.
Transparency - No data value
You will also note the actual value assigned as the No Data value. (above example is
Raster calculator and try something like:
("Raster_a@1" = -99999) * "Raster_b@1" + ("Raster_a@1" != -99999) * "Raster_a@1"
r.patch from GRASS GIS commands is a safe way to do this. See the manual, they have nice example with NULL values there.