<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>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...</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Christian.</DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"></DIV>
<DIV style="FONT: 10pt tahoma">
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=monicabuescu1985@gmail.com
href="mailto:monicabuescu1985@gmail.com">Monica Buescu</A> </DIV>
<DIV><B>Sent:</B> Monday, February 28, 2011 5:16 PM</DIV>
<DIV><B>To:</B> <A title=christian.schwartze@uni-jena.de
href="mailto:christian.schwartze@uni-jena.de">Christian Schwartze</A> </DIV>
<DIV><B>Cc:</B> <A title=grass-user@lists.osgeo.org
href="mailto:grass-user@lists.osgeo.org">GRASS user list</A> </DIV>
<DIV><B>Subject:</B> Re: [GRASS-user] calculating average value over a base
map</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Greetings
Christian
<DIV> </DIV>
<DIV>Unfortunely it only works with CELL values. For instance, r.median uses
more than just CELL.</DIV>
<DIV>Is there any other alternative? Beucase for mode and median there is
specific functions.</DIV>
<DIV><BR>Thamls</DIV>
<DIV><BR>Best regards,</DIV>
<DIV>Monica</DIV>
<DIV>
<DIV> </DIV>
<DIV class=gmail_quote>On Mon, Feb 28, 2011 at 3:55 PM, Christian Schwartze
<SPAN dir=ltr><<A
href="mailto:christian.schwartze@uni-jena.de">christian.schwartze@uni-jena.de</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Monica,</DIV>
<DIV> </DIV>
<DIV>try to use r.statistics with the average function/method. Pass you maps
through the cover= and base= parameters...</DIV>
<DIV> </DIV>
<DIV>Christian.</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=monicabuescu1985@gmail.com
href="mailto:monicabuescu1985@gmail.com" target=_blank>Monica Buescu</A>
</DIV>
<DIV><B>Sent:</B> Monday, February 28, 2011 4:27 PM</DIV>
<DIV><B>To:</B> <A title=grass-user@lists.osgeo.org
href="mailto:grass-user@lists.osgeo.org" target=_blank>GRASS user list</A>
</DIV>
<DIV><B>Subject:</B> [GRASS-user] calculating average value over a base
map</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV>
<DIV></DIV>
<DIV class=h5>Greetings
<DIV> </DIV>
<DIV>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?</DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Best regards,</DIV>
<DIV>Monica</DIV></DIV></DIV>
<HR>
_______________________________________________<BR>grass-user mailing
list<BR><A href="mailto:grass-user@lists.osgeo.org"
target=_blank>grass-user@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/grass-user"
target=_blank>http://lists.osgeo.org/mailman/listinfo/grass-user</A><BR></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></BODY></HTML>