[GRASS-dev] r.neighbors modification

Martin Wegmann wegmann at biozentrum.uni-wuerzburg.de
Tue Nov 14 11:30:26 EST 2006


Hello, 

I am looking for a way to  compute r.neighbors for a ring only and not for the 
whole 5x5, 7x7 etc. moving window. 
It is something like a 7x7 windows but minus the values in the 5x5 windows.

traditional way:

 a a a a a 
 a b b b a 
 a b x b a 
 a b b b a 
 a a a a a 

ring analysis:

 a a a a a 
 a         a 
 a    x    a 
 a         a 
 a a a a a 

I think there is no post-r.neighbors way to compute statistics in such 
a "ring", hence I or somebody else has to modify the source code. I am 
willing to learn some more C programming, but definitely need some help to 
get started. 

BTW I posted such a wish quite a while ago but for the inactive r.le module
http://www.intevation.de/rt/webrt?serial_num=2104&display=History

regards, Martin




More information about the grass-dev mailing list