<meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  
  
    Hi,<br>
    Works for me.  Placing a "," rather that a "." decimal results in a
    "expression invalid" so that can't be it.  Are you really getting
    Nan?  Use the "value plugin" to look at this or look at the
    histogram in layer properties.  Sometime it is just the image
    scaling that is off.  Send a sample file to test if it's still an
    issue.<br>
    Nicolas<br>
    <br>
    <div class="moz-cite-prefix">Le 2015-05-18 09:04, Giacomo
      Fontanelli-2 [via OSGeo.org] a écrit :<br>
    </div>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'
cite="mid:CAO5DHxEkJMaDQVmsRR1GgttGVUbNxcwHF21FpX9W-UeT277V7A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Dear community</div>
        <div><br>
        </div>
        <div>I have a raster layer with pixel values ranging from -8 to
          -11.</div>
        <div><br>
        </div>
        <div>when I do "layer1@band1" * 0.1 I get a map with only 0 and
          Nan, instead</div>
        <div>when I do "layer1@band1" / 10 I obtain the map with correct
          values.</div>
        <div><br>
        </div>
        <div>What do I do wrong?</div>
        <div><br>
        </div>
        <div>Thank you very much</div>
      </div>
      <br>
      _______________________________________________
      <br>
      Qgis-user mailing list
      <br>
      <a moz-do-not-send="true"
        href="/user/SendEmail.jtp?type=node&node=5206199&i=0"
        target="_top" rel="nofollow" link="external">[hidden email]</a>
      <br>
      <a moz-do-not-send="true"
        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 color="#cccccc" 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 moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/new-issue-with-raster-calculator-tp5206199.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/new-issue-with-raster-calculator-tp5206199.html</a>
      </div>
      <div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        To start a new topic under Quantum GIS - User, email
        <a href="/user/SendEmail.jtp?type=node&node=5206475&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
        To unsubscribe from Quantum GIS - User, <a
          moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
          here</a>.<br>
        <a moz-do-not-send="true"
href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
    </blockquote>
    <br>
  



        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/new-issue-with-raster-calculator-tp5206199p5206475.html">Re: new issue with raster calculator</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/>