[GRASS-user] r.forestfrag AddOn

maning sambale emmanuel.sambale at gmail.com
Fri Mar 2 05:23:47 EST 2012


Dear Stefan,

If i remember it right, the window size is an input to the r.neighbors command.
In the script there is an option to slect a windows size:

#%option
#% key: window
#% type: integer
#% description: window size default is 5
#% answer : 5
#% required : yes
#%END

You can modify the r.neighbors section like this:

r.neighbors input=A output=C method=sum size=$GIS_OPT_window --o
r.neighbors input=B output=D method=sum size= $GIS_OPT_window --o

On Sun, Feb 26, 2012 at 5:51 PM, Stefan Sylla <stefansylla at gmx.de> wrote:
> By now, the script can only calculate the forest fraction for a 3x3 window.
> Any ideas on how to automatically generate different window-sizes would be
> welcome.



-- 
cheers,
maning
------------------------------------------------------
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
------------------------------------------------------


More information about the grass-user mailing list