<p dir="ltr">Hi,<br>
Could it be that for your layer, 0 = null?  In that case, could this be the source of the problem?  Try changing the null value to test... Just an idea.</p>
<p dir="ltr">Nicolas Cadieux M.Sc.<br>
Les Entreprises Archéotec inc. <br>
8548, rue Saint-Denis Montréal H2P 2H2<br>
Téléphone: 514.381.5112  Fax: 514.381.4995<br>
www.archeotec.ca</p>
<div class="gmail_quote">Le 2015-03-24 10:24, "george-silva [via OSGeo.org]" <<a href="/user/SendEmail.jtp?type=node&node=5195208&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> a écrit :<br type='attribution'><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        <div dir="ltr"><div><div><div><div><div><div>Hello everyone,<br /><br /></div>It seems that we have a bug on raster calculator. I tried searching the web for this, but here's the story:<br /><br /></div>I'm developing a plugin that makes extensive use of the raster calculator. So far so good. I can enter my custom expressions and it seems to be working fine.<br /><br /></div>However one of my formulas contains a LN (natural log). So, to test this properly I've created a raster all with 1 value. The LN for 1 is 0, so the whole raster should be zeroed.<br /><br /></div><div>The raster calculator, even while programming or using the software, tells me that the expression is valid.<br /></div><div><br /></div>That's not the case.<br /><br /></div>Questions:<br /><br /></div>1) Is LN not implemented in the raster calculator? Is implemented? What is the syntax? Is it documented? <br clear="all" /><div><div><div><div><div><div><div><br /></div><div>2) Workarounds?<br /><br /></div><div>Is it a bug? I'm trying to look my redmine password so I can file a bug or contribute with documents for testing.<br /><br /></div><div>Thanks<br /><br /></div><div>George<br /></div><div><br />-- <br /><div><div dir="ltr">George R. C. Silva<br />SIGMA Consultoria<div>----------------------------<br /><div><a href="http://www.consultoriasigma.com.br/" target="_top" rel="nofollow" link="external">http://www.consultoriasigma.com.br/</a><div style="padding:0px;margin-left:0px;margin-top:0px;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div></div></div></div></div>
</div></div></div></div></div></div></div></div>
<br />_______________________________________________
<br />Qgis-user mailing list
<br /><a href="/user/SendEmail.jtp?type&#61;node&amp;node&#61;5195151&amp;i&#61;0">[hidden email]</a>
<br /><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_top" rel="nofollow" link="external">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>

        
        
        
        <br />
        <br />
        <hr noshade="noshade" size="1" />
        <div style="color:#444;font:12px 'tahoma' , 'geneva' , 'helvetica' , 'arial' , sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/Raster-Calculator-and-LN-tp5195151.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/Raster-Calculator-and-LN-tp5195151.html</a>
        </div>
        <div style="color:#666;font:11px 'tahoma' , 'geneva' , 'helvetica' , 'arial' , sans-serif;margin-top:0.4em;line-height:1.5em">
                To start a new topic under Quantum GIS - User, email ml-node+s1560n4125267h38@n6.nabble.com <br />
                To unsubscribe from Quantum GIS - User, <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;unsubscribe_by_code&amp;node&#61;4125267&amp;code&#61;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&#61;&#61;">click here</a>.<br />
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;macro_viewer&amp;id&#61;instant_html%21nabble%3Aemail.naml&amp;base&#61;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs&#61;notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" style="font:9px serif">NAML</a>
        </div></blockquote></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Raster-Calculator-and-LN-tp5195151p5195208.html">Re: Raster Calculator and LN</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html">Quantum GIS - User mailing list archive</a> at Nabble.com.<br/>