Hello Christian.<div>I believe I didn&#39;t quite understand what you have said but I think that is not the way.</div><div>My basemap is a r.clump output in CELL format that ranges from 1 til 1700 or something</div><div>my cover map is NDVI that ranges from -1 (near) til 1 (near) and is a FCELL.</div>
<div><br></div><div>My Objective. calculate for each clump, the average of NDVI pixels</div><div><br></div><div>If I do:</div><div>r.statistics -c base=new_clump cover=2007_ndvi method=average</div><div><br></div><div>I get:</div>
<div>ERROR: This module currently only works for integer (CELL) maps</div><div><br></div><div>Is there any alternative to do this?</div><div><br></div><div>Thank you Christian and the rest of grass mailing list</div><div>
<br></div><div>Monica<br><br><div class="gmail_quote">On Mon, Feb 28, 2011 at 5:08 PM, Christian Schwartze <span dir="ltr">&lt;<a href="mailto:christian.schwartze@uni-jena.de">christian.schwartze@uni-jena.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">
<div dir="ltr">
<div style="font-family:&#39;Calibri&#39;;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:&#39;Calibri&#39;;color:#000000;font-size:small;font-weight:normal;text-decoration:none"></div>
<div style="font:10pt tahoma">
<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 5:16 PM</div>
<div><b>To:</b> <a title="christian.schwartze@uni-jena.de" href="mailto:christian.schwartze@uni-jena.de" target="_blank">Christian Schwartze</a> </div>
<div><b>Cc:</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> Re: [GRASS-user] calculating average value over a base 
map</div></div></div>
<div> </div></div><div><div></div><div class="h5">
<div style="font-style:normal;display:inline;font-family:&#39;Calibri&#39;;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">&lt;<a href="mailto:christian.schwartze@uni-jena.de" target="_blank">christian.schwartze@uni-jena.de</a>&gt;</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:&#39;Calibri&#39;;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:&#39;Calibri&#39;;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:&#39;Calibri&#39;;color:#000000;font-size:small;font-weight:normal;text-decoration:none">
  <div>
  <div></div>
  <div>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></div></div></div>
</blockquote></div><br></div>