[GRASS-user] circular neighborhoods?

Patton, Eric epatton at nrcan.gc.ca
Thu Feb 21 14:15:37 EST 2008


>So in a 3x3 example, neighborhoodSize=3, neighborhoodDistance=1, and your
>first diagram has "o"s where the mask is true.  The corners of the square
>wouldn't be in the mask (as in Eric's 3x3), because those points would have 
>the left hand side of the inequality equal to 2, making the mask false.
>
>I haven't actually *tried* the code, but that is what the block of code in
>gather.c for circular neighborhoods says it should be doing.

Thanks for the info - I wasn't even aware that r.neighbors could do that, as 
I've always used the square windows for my work. 

If I get a chance to test it out, I'll report back on what happening.

~ Eric.


More information about the grass-user mailing list