<div dir="ltr">Hi Jesus<div><br></div><div>Perhaps your input layer has no values that match the >= 73 condition?</div><div><br></div><div>I can reproduce this behaviour if I use a layer in which pixel values go up to 50 and I ask for pixels >= 60.</div><div><br></div><div>Otherwise, if the input layer has values above the threshold, it seems strange and I cannot seem to reproduce it here (QGIS 2.8.1)</div><div><br></div><div><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 8:58 AM, Jesus Munoz <span dir="ltr"><<a href="mailto:jesusmunozserrano@gmail.com" target="_blank">jesusmunozserrano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Good morning list!!<br>
<br>
I am trying to do a cloud mask for a Landsat image based on the values of the pixels where the clouds are found. I am using the raster calculator for this purpose by introducing the expression:<br>
<br>
                (“Band 1 layer name" >= 73) * "Band 1 layer name”<br>
<br>
So basically, I am trying to obtain a layer in which all pixels with a value lower than 73 are removed.<br>
<br>
However, after calculating this expression I only get an empty raster layer, only visible in the layers panel and populated only by “nan” values. Does anybody know what am I doing wrong???<br>
<br>
Jesus<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"><div><br></div>-- <br><div class="gmail_signature">___________________________ ___ __<br>Ricardo Garcia Silva</div>
</div></div></div>