If you want to deal with raster value types other than CELL, you can use the –c 
flag in r.statistics in order to process the labels. Therfore, you have to copy 
your cat values to the category labels first...

Regards,
Christian.
From: Monica Buescu 
Sent: Monday, February 28, 2011 5:16 PM
To: Christian Schwartze 
Cc: GRASS user list 
Subject: Re: [GRASS-user] calculating average value over a base map

Greetings Christian 

Unfortunely it only works with CELL values. For instance, r.median uses more 
than just CELL.
Is there any other alternative? Beucase for mode and median there is specific 
functions.

Thamls

Best regards,
Monica

On Mon, Feb 28, 2011 at 3:55 PM, Christian Schwartze 
<christian.schwar...@uni-jena.de> wrote:

  Monica,

  try to use r.statistics with the average function/method. Pass you maps 
through the cover= and base= parameters...

  Christian.

  From: Monica Buescu 
  Sent: Monday, February 28, 2011 4:27 PM
  To: GRASS user list 
  Subject: [GRASS-user] calculating average value over a base map

  Greetings 

  I have a map with values and a base map created with r.clump. How can I 
calculate the average of values that falls inside each cluster defined by 
r.clump?
  Thanks

  Best regards,
  Monica

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

Reply via email to