[GRASS-user] Using output from r.statistics

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


Antonio,
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.

Regards,
Christian.


-----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

Greetings

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:
598666.544966|9159452.159237||3996|7108
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
(r.statistics).

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?

Thanks
Antonio Rocha



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

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user 



More information about the grass-user mailing list