[GRASS-user] r.mapcalc: not the desired results

Markus Metz markus.metz.giswork at gmail.com
Thu Dec 14 12:27:41 PST 2017


On Thu, Dec 14, 2017 at 8:19 PM, Rich Shepard <rshepard at appl-ecosys.com>
wrote:
>
>   I have two maps (sim_blk and sim_open, attached) and I want a map of the
> cell-by-cell differences between them. Using the equation,
>
> r.mapcalc "sim_max = max(sim_blk,sim_open)"
>
> yields a map of the higher value for each cell (also attached), but the
> color pallet is quite different from that of the two input maps. I'd like
to
> learn how to show the differences using the same color scheme in the
result
> as in the two source maps, and have not figured this out on my own.
>
>   Please provide a clue stick.

r.colors map=sim_max raster=sim_blk

will copy the color scheme from sim_blk to sim_max

Markus M

>
> Rich
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20171214/a41023fc/attachment.html>


More information about the grass-user mailing list