[GRASS-user] mapcalc

Hendrik Hoeth hendrik.hoeth at cern.ch
Mon Jul 25 17:24:39 EDT 2011


Thus spake Rebecca Bennett (rabennett at ymail.com):

> I would like to use r.mapcalc to fill the null cells of one raster
> with the value of the same cells from in a second raster (while
> leaving all other cells as they are in the first raster).

rasterA="if(isnull(rasterA), rasterB, rasterA)"

-- 
A man without a dream in his heart already has one foot in the grave.


More information about the grass-user mailing list