counting the number of patches in a certain class
Lars Schylberg
larss at fmi.kth.se
Mon Feb 6 09:40:39 EST 1995
The most simple way must be to make shell script that runs
r.patch. Then run r.stats the the patch image and the class image.
The result could be obtained by piping the result from r.stats thru
awk or gawk, that performs the counting.
I don't have the actual example but I have done about the same thing
counting interval classes from patches.
Lars
More information about the grass-user
mailing list