<div dir="ltr"><div><div><div>Hi Sergio:<br><br></div>Interesting question.<br><br>You can create a raster layer with a fix value per cell, then make the function you want. For example, in raster calculator:<br><br>
1. <b>("GDD@1">0 or "GDD@1"=<0)*2</b> gets a raster layer with value 2 per cell (let's put name =value2).<br><br></div><div>2. <b>"value2"^"GDD@1"</b>
 must be a layer with each cell elevated to some value on "GDD@1". If 
value in cell of "GDD@1" is big, you get "inf" (infinite?) values<br>
</div><div><br></div>Good luck<br><br></div>Carlos Cerdán<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/16 Sergio A Estay <span dir="ltr"><<a href="mailto:sergio.estay@uach.cl" target="_blank">sergio.estay@uach.cl</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear All,<br>
<br>
I am wondering if it is possible to use, in the raster calculator, different mathematical functions in that the defined in the raster calc GUI.<br>
<br>
By example, using my layer GDD (just positive values) I try this:<br>
<br>
exp("GDD@1") but I obtained just NaN values in the result layer, the same with e^"GDD@1"<br>
<br>
<br>
Also, if I try something like this:<br>
<br>
"GDD@1"^2 , this worked perfect, but if I try:<br>
<br>
2^"GDD@1" this produced just NaN<br>
<br>
Any suggestions will be useful<br>
<br>
-- <br>
Sergio A. Estay<br>
Inst. Ciencias Ambientales y Evolutivas<br>
Universidad Austral de Chile<br>
Casilla 567, Valdivia, Chile<br>
Phone: 5663-293913<br>
<a href="http://www.ciencias.uach.cl/instituto/ciencias_ambientales_evolutivas/academicos/sergio-estay.php" target="_blank">http://www.ciencias.uach.cl/<u></u>instituto/ciencias_<u></u>ambientales_evolutivas/<u></u>academicos/sergio-estay.php</a><br>

<br>
<br>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
</blockquote></div><br></div>