[GRASS-user] Using output from r.statistics

Christian Schwartze christian.schwartze at uni-jena.de
Wed Mar 2 14:38:35 EST 2011

since the calculated statistics are stored as labels in the output map, you 
have to use the @ operator in the mapcalc formula in order to access the 
labels instead of the clump categories, in your case.


-----Ursprüngliche Nachricht----- 
From: António Rocha
Sent: Wednesday, March 02, 2011 11:10 AM
To: GRASS user list
Subject: [GRASS-user] Using output from r.statistics


I have used r.statistics to calculate the sum of a cover map based on a
base map. When I use the Query tool I get these:
The first two corresponds to Geographic Location the third Base map
clump ID and the last one it corresponds to the value of the sum

When I try to use this output, in mapcalc, it does not use the values
obtained in r.statistics but the clump value Which does not make much
sense. How can I use the r.average valeus of this raster?

Antonio Rocha

__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5918 (20110301) __________

The message was checked by ESET NOD32 Antivirus.


grass-user mailing list
grass-user at lists.osgeo.org

More information about the grass-user mailing list