[GRASS-user] Change value of cells in raster map

Rich Shepard rshepard at appl-ecosys.com
Thu Jun 8 16:57:31 PDT 2017


On Thu, 8 Jun 2017, Mark Seibel wrote:

> Maybe if-then statements with mapcalc are applicable to the situation.
> outputRaster=if(EXPRESSION,true,false)

Mark,

   I'll try writing an expression that tests for a map name. I can use any
output map name because if it contains the appropriate cell values a simple
g.rename will work.

   Perhaps this will work:

   r.mapcalc 'output1 = if (mapname at mapset,value=0.0)'

I'll try it tomorrow morning and post the results.

Thanks,

Rich


More information about the grass-user mailing list