[Qgis-user] unable to produce a raster mask

Giacomo Fontanelli giacomofontanelli76 at gmail.com
Sat Nov 22 02:34:32 PST 2014


Dear community

I start from a raster layer, 8bit unsigned integer. Pixel value ranges from
1 to 12.

I would like to mask the pixels with value>8, setting their new value to 0.

I used raster calculator with this formula

 ( "lc_n_italy1 at 1" >= 8 )  * ("lc_n_italy1 at 1" * 0)

I tried also

 ( "lc_n_italy1 at 1" >= 8 )  * 0

but I always obtain a map with only "Nan"

Can you help me?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20141122/36080bb9/attachment.html>


More information about the Qgis-user mailing list