[GRASS-user] Using output from r.statistics

2011-03-02 Thread António Rocha

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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Using output from r.statistics

2011-03-02 Thread Christian Schwartze

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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user 


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user