[GRASSLIST:5011] RE: reporting statistics from clumps of pixels
William L. Baker
BakerWL at uwyo.edu
Wed Nov 20 12:45:05 EST 2002
Yes, you can use r.le.pixel. Consider the map of
clumps to be what is referred to in r.le.pixel as
a "region" map.
From: Thomas Dewez [mailto:thomas.dewez at brunel.ac.uk]
Sent: Wednesday, November 20, 2002 10:09 AM
To: gRASSLIST at baylor.edu
Subject: [GRASSLIST:5010] reporting statistics from clumps of pixels
I am struggling on how to extract statistics from clumps of data. I
have a layer containing clumps ID and I would like to obtain an ascii
output of the average elevation of those clumps.
Is there a command that does this?
r.average was used to compute the average value of each clump.
The problem is simply to report the value contained in one layer
while looking up the category value in another layer. The report
would look something like this:
Surely it is quite basic
Thanks for your help,
More information about the grass-user