Skip to content
Prev 2432 / 7420 Next

number of pixels in a circular window for GRASS r.neighbors function

I am going out on a limb here as I have never uses this function but based on what you wrote you could probably just change function=sum to function=mean. I am assuming (based on what you said) that the function (r.neighbors) imposes the condition first (eg x==1) and then sums the resulting 0s and 1s to get the number equal to 1. If that's the case you can change sum to mean to get the proportion.
On Oct 12, 2011, at 3:39 AM, Alexandre Villers <villers.alexandre at gmail.com> wrote: