<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
Hi Pedro,
<div><br>
</div>
<div>thank you very much to have tested the computation with my test data!</div>
<div>You are right, I checked again the computation and actually it works.</div>
<div><br>
</div>
<div>However, I was using Saga raster calculation in a processing modeler, and one of the layer I share with you</div>
<div>is the resulting from a previous computation. </div>
<div><br>
</div>
<div>In other word the raster layer c=temp_recal.tif comes from a previous computation (raster calculator):</div>
<div><span>ifelse(a>0,-(0.0065*a-16),(0.0045*a+16))</span></div>
<div>where a is the layer attached, and hence c of the previous formula is the resulting of this first computation.</div>
<div><br>
</div>
<div>E.<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block; width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Pedro Venâncio <pedrongvenancio@gmail.com><br>
<b>Inviato:</b> mercoledì 31 maggio 2017 11:37<br>
<b>A:</b> frippe12573; qgis-user<br>
<b>Oggetto:</b> Re: [Qgis-user] Wrong result with Saga Raster calculator</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>
<div>Hi Eugenio,<br>
<br>
</div>
The result with SAGA Raster Calculator seems ok here, on QGIS 2.18.9, SAGA 2.3.2, both from OSGeo4W64 (result attached).<br>
<br>
Z_top_res.tif have values from 724.403 to 1423.553, and so, the first condition is never true. Then, it always make ((b-c)/a)*1000, and the result seems ok to me.<br>
<br>
<br>
</div>
Pedro<br>
<div><br>
<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2017-05-31 10:19 GMT+01:00 frippe12573 <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi Paolo,<br>
<br>
the raster have the same size and origin.<br>
The pixels are precisely overlapped.<br>
<br>
I tried also r.mapcalc, but I got a worst result.<br>
Here the output of the log:<br>
<a href="https://pastebin.com/jNyyzHgf" rel="noreferrer" target="_blank">https://pastebin.com/jNyyzHgf</a><br>
<br>
E.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Wrong-result-with-Saga-Raster-calculator-tp5322429p5322442.html" rel="noreferrer" target="_blank">
http://osgeo-org.1560.x6.<wbr>nabble.com/Wrong-result-with-<wbr>Saga-Raster-calculator-<wbr>tp5322429p5322442.html</a><br>
<span class="im HOEnZb">Sent from the QGIS - User mailing list archive at Nabble.com.<br>
</span>
<div class="HOEnZb">
<div class="h5">______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">
https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">
https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>