<div dir="ltr"><div>Ciao Giacomo, <br></div><div><br></div><div>the condition ( "lc_n_italy1@1" >= 8 ) is evaluated to either 1 or 0 depending on the lc_n_italy1@1 value.<br></div><div>so you always get 0 (!) as the second factor is always 0.<br></div><div><br></div><div>Try to set the formula to the following:<br></div><div>( "lc_n_italy1@1" < 8 ) * "lc_n_italy1@1</div><div><br>Best regards.<br></div><div>Giuseppe<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 22, 2014 at 11:34 AM, Giacomo Fontanelli <span dir="ltr"><<a href="mailto:giacomofontanelli76@gmail.com" target="_blank">giacomofontanelli76@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear community<div><br></div><div>I start from a raster layer, 8bit unsigned integer. Pixel value ranges from 1 to 12.</div><div><br></div><div>I would like to mask the pixels with value>8, setting their new value to 0.</div><div><br></div><div>I used raster calculator with this formula</div><div><br></div><div> ( "lc_n_italy1@1" >= 8 ) * ("lc_n_italy1@1" * 0)<br></div><div><br></div><div>I tried also </div><div><br></div><div> ( "lc_n_italy1@1" >= 8 ) * 0<br></div><div><br></div><div>but I always obtain a map with only "Nan"</div><div><br></div><div>Can you help me?</div><div><br></div><div>Thank you</div></div>
<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">Giuseppe Sucameli</div>
</div>