[Qgis-user] making mistakes with raster calculator
Giacomo Fontanelli
giacomofontanelli76 at gmail.com
Wed Apr 8 15:09:32 PDT 2015
Dear forum
I use QGIS 2.8.1.
I have a raster map, Float32, pixel values range from -0.7 to 1.
I Would like to make a map with pixel having only two values:
pixels with values <= 0 should be 0
pixels with values > 0 should be 5.
the sintax
( "3_NDFI at 1" <= 0 ) =0 AND ( "3_NDFI at 1" > 0 ) =5
doesn't work because it produces a map with only 0 values.
In order to reach my goal I must do
( "3_NDFI at 1" <= 0 ) =0 AND ( "3_NDFI at 1" > 0 ) =1
then multiply result by 5.
What's the problem?
Is it possible to fulfil the purpose with only one raster operation?
Thank you very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150409/93a0c5c0/attachment.html>
More information about the Qgis-user
mailing list