Hi,
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.
Nicolas

Le 2015-05-18 09:04, Giacomo Fontanelli-2 [via OSGeo.org] a écrit :
> Dear community
>
> I have a raster layer with pixel values ranging from -8 to -11.
>
> when I do "layer1@band1" * 0.1 I get a map with only 0 and Nan, instead
> when I do "layer1@band1" / 10 I obtain the map with correct values.
>
> What do I do wrong?
>
> Thank you very much
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=5206199&i=0>
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://osgeo-org.1560.x6.nabble.com/new-issue-with-raster-calculator-tp5206199.html
>  
>
> To start a new topic under Quantum GIS - User, email 
> [email protected]
> To unsubscribe from Quantum GIS - User, click here 
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4125267&code=bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg==>.
> NAML 
> <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>
>  
>





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/new-issue-with-raster-calculator-tp5206199p5206475.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to