<p>Raster calculator has a nasty bug on 26 and 28 that its truncating values. I dont have The correct number but I suggest you do a search on The bugtracker and add dome weight to it.</p><p>it looks serious enough and its a blocker but without any comments.<span></span></p><p><br><br>On Wednesday, April 15, 2015, Michael Treglia <<a href="mailto:mtreglia@gmail.com">mtreglia@gmail.com</a>> wrote:<br></p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div><div><div><div><div>Hi All,<br><br></div>Was encountering a similar problem with Raster Calculator [albeit a bit different] just yesterday - I had a layer that had values ranging ~0-1000 (integers). I wanted the layer to represent probability values (ranging 0-1), so I used the raster calculator to divide it by 1000.  <br><br>I ended up with 'nan' values displayed as the max and min on the Layers pane and when I try to get into the properties I get a "Bad allocation" message.   Using the 'Identify Features' tool, the values look appropriate, but  I can't adjust the style or anything.<br><br></div>I ended up doing what I needed in R for now, but it would be great to work through this issue - I'm open to any suggestions, or can send the data in case others want to test.<br><br></div>Using QGIS 2.8.1 64-bit on Win7.<br><br></div>Cheers,<br></div>mike<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 4:30 AM, Ricardo Filipe Soares Garcia da <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','ricardo.garcia.silva@gmail.com');" target="_blank">ricardo.garcia.silva@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><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"><div><div><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 8:58 AM, Jesus Munoz <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','jesusmunozserrano@gmail.com');" target="_blank">jesusmunozserrano@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">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="javascript:_e(%7B%7D,'cvml','Qgis-user@lists.osgeo.org');" target="_blank">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></div></div><span><font color="#888888">-- <br><div>___________________________ ___ __<br>Ricardo Garcia Silva</div>
</font></span></div></div></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Qgis-user@lists.osgeo.org');" target="_blank">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></div>
</blockquote><br><br>-- <br><div dir="ltr">George R. C. Silva<br>SIGMA Consultoria<div>----------------------------<br><div><a href="http://www.consultoriasigma.com.br/" target="_blank">http://www.consultoriasigma.com.br/</a><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div></div></div></div><br>