<div dir="ltr"><div>Hello again:<br><br>Perhaps there is an incompatibility between QGIS and GRASS: now QGIS produces "-inf" (-infinite) values for null cells, so any operation or function that involves al least one those cells, give us -infinite values (constant + - * / -infinite = - infinite).<br>
<br>So, as you get -inf values, then scale of values is so large that finally all is pink color.<br><br>I think that it must be fixed to get "null" values again, as in QGIS 1.8 version, because GRASS works with "null" values, not with -inf... or What do you say, dear developers?.<br>
<br></div><div>Regards<br><br>Carlos Cerdán<br></div><div><div><div><div><div><div><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-14 16:23 GMT-05:00 Ivan Santiago <span dir="ltr"><<a href="mailto:isantiago@ogp.pr.gov" target="_blank">isantiago@ogp.pr.gov</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all:<br>
<br>
Thanks to Carlos Cerdan for his advice.  Apparently, QGIS has some issues with integer rasters containing nodata values.  When the raster for masking use is floating point, QGIS does not paint nodata cells.  On the contrary, when the original raster is integer, QGIS fills nodata cells with pink color (which makes no sense).  The big problem/question is why even if the mask exists, further rasters will not have nodata values outside the AOI.<br>

<br>
Then...<br>
Following Carlos' advice, I converted nodata cells to zero using <a href="http://r.null.to" target="_blank">r.null.to</a><br>
Since my purpose is to compute area coverage and percent coverage for risk zones inside a municipality:<br>
I multiplied the 1,0 raster layer by the integer risk_index (that is 1to5)<br>
<br>
Then I used r.null.val to set zero value cells to nodata because I wanted to use r.stats to compute areas and percentages with the option of ignoring nodata cells.<br>
<br>
Finally (and happily) the r.stats results were more realistic, taking away the area outside the "mask".<br>
<br>
---------------------------<br>
Iván Santiago<br>
GIS Specialist<br>
Information Technologies<br>
Office of Management and Budget<br>
787.725.9420 x 2378<br>
Calle Cruz 254<br>
PO Box 9023228<br>
San Juan, PR 00902-3228<br>
<a href="http://gis.pr.gov" target="_blank">http://gis.pr.gov</a><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></div>