Rich Shepard wrote > On Thu, 8 Jun 2017, Rich Shepard wrote: > >> r.mapcalc 'output1 = if (mapname@mapset,value = 0.0)' > > Tried it this evening: r.mapcalc does not like this syntax. > > I can create a map with values specified, but they are the size of the > mask. How can I specify a specific map name to r.mapcalc? > > Rich > _______________________________________________ > grass-user mailing list
> [email protected] > https://lists.osgeo.org/mailman/listinfo/grass-user See https://grass.osgeo.org/grass73/manuals/r.mapcalc.html raster A: raster B: raster eg with values 1 and 2 in R.mapcalc : if(B==1, A, A/B) which means in the resulting map: if the cell value in B is equal to 1, then take the raster cell value of raster A, otherwise divide the raster cell value of A by the raster cell value of B. ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Change-value-of-cells-in-raster-map-tp5323575p5323594.html Sent from the Grass - Users mailing list archive at Nabble.com. _______________________________________________ grass-user mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-user
