<p dir="ltr">Maybe you could use Map Algebra (r.mapcalc)? </p>
<p dir="ltr">giovanni</p>
<div class="gmail_quote">Il 07/ott/2014 21:47 "Orr, Andrew B." <<a href="mailto:aorr@anl.gov">aorr@anl.gov</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">I’m trying to find a tool that will do the same thing as the r.neighbors with a “sum cells” function, except that the tool has to write a NULL value if a NULL is encountered within the cell “size” that’s specified.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For example, if I have a raster:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">3 2 3<u></u><u></u></p>
<p class="MsoNormal">4    2<u></u><u></u></p>
<p class="MsoNormal">1 2 3<u></u><u></u></p>
<p class="MsoNormal">where the center cell is a null, I would like the tool output to write a NULL for the output when it passes over this part of the raster.
<u></u><u></u></p>
<p class="MsoNormal">As the tool is now, it seems that it treats it as a zero or simply ignores it when “sum”ing the contents.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any ideas on how I could do this, or what tool I would use?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for your help!<u></u><u></u></p>
<p class="MsoNormal">-Andy<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div>