[GRASS-user] Looking for a Grass equivalent to ESRI'sFocalmean(grid, ANNULUS, irad, orad)

Glynn Clements glynn at gclements.plus.com
Sun Sep 2 01:00:54 EDT 2007


Brad Douglas wrote:

> > So, with r.neighbors, how would I annulus shape neighbourhood shape?
> 
> r.neighbors in=input.map out=output.map size=3 weight=weight.file
> 
> weights.file should contain something along the lines of:
> 3 3 3 1 4 8 9 5 3

Note that spaces and newlines can be used interchangeably, so it's
usually preferable to format the file according to the neighbourhood
shape, i.e.:

3 3 3
1 4 8
9 5 3

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list