<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>This looks like a bug.<br><br></div>Even thought I'm programming with the raster calculator, there are strong tells that this is a bug. I tested this programming and using the inteface: same results.<br><br></div>In the attachment there is the file I'm working with. I tried this simple math:<br><br>* radiance.tif<br><br></div>(raster * 0.03705882) + 3.2 <br><br></div>It's output is all NODATA.<br><br></div>I've tried:<br><br></div>raster + 1<br><br></div>It's output is NODATA.<br><br></div>raster * 0.5<br><br></div>It's output is NODATA.<br><br></div>If that's not a bug I'm not sure what it is. It looks like on 2.6 it was fine. I'm working on this for two days, and unless I'm doing something really really wrong, it think it's a bug.<br><br></div>Please, see the TIF imagery attached (zip).<br><br></div>All the formulae is simple and should work without issues.<br><br></div>George<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 24, 2015 at 1:28 PM, Nicolas Cadieux <span dir="ltr"><<a href="mailto:nicolas.cadieux@archeotec.ca" target="_blank">nicolas.cadieux@archeotec.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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: <a href="tel:514.381.5112" value="+15143815112" target="_blank">514.381.5112</a>  Fax: <a href="tel:514.381.4995" value="+15143814995" target="_blank">514.381.4995</a><br>
<a href="http://www.archeotec.ca" target="_blank">www.archeotec.ca</a></p>
<div class="gmail_quote">Le 2015-03-24 10:24, "george-silva [via OSGeo.org]" <<a href="http:///user/SendEmail.jtp?type=node&node=5195208&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> a écrit :<br type="attribution"><blockquote style="border-left:2px solid #cccccc;padding:0 1em"><div><div class="h5">

        <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/" rel="nofollow" link="external" target="_blank">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></div></div>_______________________________________________
<br>Qgis-user mailing list
<br><a href="/user/SendEmail.jtp?type&#61;node&amp;node&#61;5195151&amp;i&#61;0">[hidden email]
<br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>

        
        
        
        <br>
        <br>
        <hr size="1" noshade>
        <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" rel="nofollow" link="external" target="_blank">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 <a href="mailto:ml-node%2Bs1560n4125267h38@n6.nabble.com" target="_blank">ml-node+s1560n4125267h38@n6.nabble.com</a> <br>
                To unsubscribe from Quantum GIS - User, <a href="<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;unsubscribe_by_code&amp;node&%2361;4125267&amp;code&%2361;bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg&%2361;&%2361" target="_blank">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</a>;">click here.<br>
                <a href="<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro&#61;macro_viewer&amp;id&%2361;instant_html%21nabble%3Aemail.naml&amp;base&%2361;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs&%2361;notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_blank">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</a>" style="font:9px serif">NAML
        </div></blockquote></div>

        
        
        
<br><hr width="300" align="left">
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Raster-Calculator-and-LN-tp5195151p5195208.html" target="_blank">Re: Raster Calculator and LN</a><br>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html" target="_blank">Quantum GIS - User mailing list archive</a> at Nabble.com.<br><br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">George R. C. Silva<br>SIGMA Consultoria<div>----------------------------<br><div><a href="http://www.consultoriasigma.com.br/" target="_blank">http://www.consultoriasigma.com.br/</a><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;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;overflow:hidden;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;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div></div></div></div></div>
</div>