[GRASS-user] circular neighborhoods?

Carlos "Guâno" Grohmann carlos.grohmann at gmail.com
Thu Feb 21 13:11:43 EST 2008


Yes, Eric, that is what it does for a _square_ neighborhood. I am a
little confuse about the actual shape of the _circular_ neighborhood.

using your examples:

will a 3x3 circular neighborhood look like this:?

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

and a 5x5?

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


maybe now my question is more clear...



thanks


Carlos




On Thu, Feb 21, 2008 at 3:07 PM, Patton, Eric <epatton at nrcan.gc.ca> wrote:
> >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.
>



-- 
+-----------------------------------------------------------+
 Carlos Henrique Grohmann - Guano
 Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.


More information about the grass-user mailing list