[GRASS-user] getting the number of occurences of different
classes in a moving window neighbourhood
Maris Nartiss
maris.gis at gmail.com
Mon Oct 20 10:16:09 EDT 2008
Hello,
You can use r.mapcalc to perform any calculations based on cell
surrounding cell values/presence. See more information in r.mapcalc
help page [1] or take a look at r.lake [2] help page to see how cell
value is calculated based on neighborhood cell values with mapcalc.
WBR,
Maris.
1. http://grass.osgeo.org/grass64/manuals/html64_user/r.mapcalc.html
2. http://grass.osgeo.org/grass64/manuals/html64_user/r.lake.html
2008/10/20, Hufkens Koen <koen.hufkens at ua.ac.be>:
> Hi list,
>
> I'm looking for a way to extract the occurence (number of pixels of a
> certain class in a moving window) of a certain class in a moving window
> neighbourhood and write this to a map. r.neighbors only provides summarized
> versions of what I need. Is there a way to calculate this basic statistic
> without resorting to too much coding or exporting my maps into R or matlab?
>
> Kind regards,
> Koen
>
More information about the grass-user
mailing list