[GRASS-user] r.statistics base=name cover=name method=count ?
Markus Metz
markus.metz.giswork at googlemail.com
Sat Sep 26 04:22:28 EDT 2009
Hermann Peifer wrote:
> Markus wrote:
>> On Fri, Sep 25, 2009 at 8:26 AM, Hermann Peifer <peifer at gmx.eu> wrote:
>>> Hi,
>>>
>>> I see that there is a method=distribution which gives me the percentage
>>> values, but is there an easy way to get to a count of cover layer
>>> values ?
>>
>> Maybe r.clump and then r.report with counts?
>>
>
> Thanks for the hint. I'll give it a try.
>
> However, I guess that r.statistics knows the counts before calculating
> percentages, there is just no method to make it print them.
Maybe r.univar.zonal from grass-addons can help? It could give you the
number of cells of the cover layer (count of cover layer values) per
base layer (zoning map in r.univar.zonal) class. Not sure if this is
what you are looking for.
Markus M
More information about the grass-user
mailing list