[GRASS-user] circular neighborhoods?

Patton, Eric epatton at nrcan.gc.ca
Thu Feb 21 13:07:08 EST 2008


>I was thinking about the circular neighborhoods that r.neighbors use.
>How exactly are they shaped? I mean, in a 3x3 window, does the
>circular one looks like a cross? and then it start to look more like a
>circle as the size increases?

As far as I understand it,

A 3x3 window would look like this:

o-o-o
o-X-o
o-o-o

Where the 'X' is the current cell being processed. Similarly, a 5X5 window
would look like this:

o-o-o-o-o
o-o-o-o-o
o-o-X-o-o
o-o-o-o-o
o-o-o-o-o

r.neighbors will perform calculations on all the cells I've marked 'o' and and 
assign the output value to 'X', according to whatever method has been chosen 
(i.e., average, median, min, max, etc.).

~ Eric.


More information about the grass-user mailing list