[GRASS-user] calculating average value over a base map

Christian Schwartze christian.schwartze at uni-jena.de
Mon Feb 28 12:08:47 EST 2011


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110228/c6e32dae/attachment.html


More information about the grass-user mailing list