[GRASS-dev] [GRASS GIS] #857: add simple neighborhood functions to r.mapcalc

GRASS GIS trac at osgeo.org
Thu Jan 7 18:11:32 EST 2010


#857: add simple neighborhood functions to r.mapcalc
-------------------------+--------------------------------------------------
 Reporter:  dickeya      |       Owner:  grass-dev at 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>


More information about the grass-dev mailing list