<div dir="ltr"><div>Hi Marion, <br></div><div><br></div><div>Don't know how is it from QGIS, but in the native GRASS GIS we first se the computational region with g.region [0] and then run r.mapcalc as:</div><div><br></div><div>r.mapcalc expression="diff = map1 - map2"</div><div><br></div><div>HTH,</div><div>Vero</div><div><br></div><div>[0] <a href="https://grass.osgeo.org/grass74/manuals/g.region.html">https://grass.osgeo.org/grass74/manuals/g.region.html</a><br></div></div><br><div class="gmail_quote"><div dir="ltr">El lun., 2 jul. 2018 a las 12:18, marion-brunet (<<a href="mailto:marion-brunet@sfr.fr" target="_blank">marion-brunet@sfr.fr</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="font-family:arial,helvetica,sans-serif;font-size:12px">Hello,<br>
<br>
I am trying to calculate the difference between two raster layers. For that, I am using GRASS in QGIS. I use the command r.mapcalc. In the field "expression to evaluate" I wrote </span><br>
<code><span style="font-size:12px"><span style="font-family:arial,helvetica,sans-serif">r.mapcalc expression=diff =TIN_12_17-TIN_06_18</span></span><br>
<span style="font-size:12px"><span style="font-family:arial,helvetica,sans-serif">TIN_12_17 and TIN_06_18 are the names of my two rasters.<br>
I then select the region on my canevas.<br>
When I click "run" I don't have any error but no file is created in my project. I would like to have a new raster file with the difference of the two previous ones.<br>
<br>
What am I doing wrong?<br>
<br>
Thank you,<br>
Marion</span></span></code>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a></blockquote></div>