#857: add simple neighborhood functions to r.mapcalc
-+--
Reporter: dickeya | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.0
Component: Raster | Version: unspecified
Keywords: r.mapcalc|Platform: All
Cpu: All |
-+--
I find myself using a lot of neighbor functions in r.mapcalc, but find the
syntax to be tedious. Anything larger than a 3x3 neighborhood and writing
out raster[-1,-1] + raster[-1,0] + raster[-1,-1] + ... is quite a task.
It's especially hard to do an average when nodata cells are present.
It would be great to have some built in neighborhood functions that would
handle the math, taking into account nodata cells, and working on a
rectangular or circular area. Something like:
{{{
neighborhood(raster, width, height, shape, function)
}}}
--
Ticket URL: http://trac.osgeo.org/grass/ticket/857
GRASS GIS http://grass.osgeo.org
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev