[GRASSLIST:329] Re: Fwd: Developing a forest fragmentation
index
Hamish
hamish_nospam at yahoo.com
Thu Mar 23 05:24:24 EST 2006
> What is bugging me is generating Pff, which counts from the moving
> window the forest pixel pairs in 4 cardinal directions. (see
> attached)
Read about the NEIGHBORHOOD MODIFIER in the r.mapcalc help page.
That gives you access to the cell above, below, to the left, and to the
right of the cell being processed.
"..., map[0,1] refers to the cell one column to the right of the current
cell. This syntax permits the development of neighborhood-type filters
within a single map or across multiple maps."
Or if you feel really keen you can create a new filter for r.neighbors
by modifying one of the old ones?
r.mapcalc is very powerful though and should let you win.
Hamish
More information about the grass-user
mailing list