[GRASS-user] r.neighbors treating NULL values
G. Allegri
giohappy at gmail.com
Tue Oct 7 13:19:03 PDT 2014
Maybe you could use Map Algebra (r.mapcalc)?
giovanni
Il 07/ott/2014 21:47 "Orr, Andrew B." <aorr at anl.gov> ha scritto:
> 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.
>
>
>
> For example, if I have a raster:
>
>
>
> 3 2 3
>
> 4 2
>
> 1 2 3
>
> 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.
>
> As the tool is now, it seems that it treats it as a zero or simply ignores
> it when “sum”ing the contents.
>
>
>
> Any ideas on how I could do this, or what tool I would use?
>
>
>
> Thanks for your help!
>
> -Andy
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20141007/c96ec223/attachment.html>
More information about the grass-user
mailing list