<div>Hi Milton,<br></div><div><br></div><div>A possible approach could be, for example, to do the following with each map:</div><div><br></div><div>r.stats -1 input=map1 output=cellvaluesmap1</div><div><br></div><div>It will create a file containing the cell values for each map.  Then you can read this file into R and average the three highest values.  Something like:</div>
<div><br></div><div>values.map1<-read.table("cellvaluesmap1")</div><div>threehighest<-values.map1$V1[order(values.map1,decreasing=FALSE)][1:3]</div><div>mean3highest<-mean(threehighest)</div><div><br></div>
<div>Hope it helps. Success</div><div><br></div><div>Miguel</div><br><div class="gmail_quote">2013/3/15 Milton Cezar Ribeiro <span dir="ltr"><<a href="mailto:miltinho.astronauta@gmail.com" target="_blank">miltinho.astronauta@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a set of 7 raster maps.<br>
I am able to calculate several stats with these mapas using r.series.<br>
Now I need to calculate the mean of the tree highest values of my 7 maps.<br>
Any idea of how can I do that?<br>
<br>
cheers<br>
--<br>
Miltinho - <a href="mailto:mcr@rc.unesp.br">mcr@rc.unesp.br</a><br>
Laboratório de Ecologia Espacial e Conservação - LEEC<br>
Depto de Ecologia - UNESP - Rio Claro<br>
Av. 24A, 1515- Bela Vista<br>
13506-900 Rio Claro, SP, Brasil<br>
<br>
Fone: <a href="tel:%2B55%2019%203526-9647" value="+551935269647">+55 19 3526-9647</a> (office)  19 3526-9680 (lab)<br>
Cel: 19 9853-3220 / 19 9853-5430<br>
<br>
Depto Ecologia <a href="http://www.rc.unesp.br/ib/ecologia/" target="_blank">http://www.rc.unesp.br/ib/ecologia/</a><br>
<br>
PG ECO & BIODIV <a href="http://www.rc.unesp.br/ib/ecologia/posbiodiversidade/index.php" target="_blank">http://www.rc.unesp.br/ib/ecologia/posbiodiversidade/index.php</a><br>
<br>
CV <a href="http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4792988H6&mostrarNroCitacoesISI=true&mostrarNroCitacoesScopus=true" target="_blank">http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4792988H6&mostrarNroCitacoesISI=true&mostrarNroCitacoesScopus=true</a><br>

<br>
Google citations <a href="http://scholar.google.com/citations?user=OWX_2eAAAAAJ" target="_blank">http://scholar.google.com/citations?user=OWX_2eAAAAAJ</a><br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">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>
</blockquote></div><br>