Hi Milton,
A possible approach could be, for example, to do the following with each
map:
r.stats -1 input=map1 output=cellvaluesmap1
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:
[apologies for taking the liberty to re-sort previous posts]
Milton Cezar Ribeiro:
I have a set of 7 raster maps.
I am able to calculate several stats with these mapas using r.series.
Now I need to calculate the mean of the tree highest values of my 7 maps.
Any idea of how can I do that?
Hi Miltinho
I assume you want the mean of the three highest values for each raster
cell? If so, you can do this using another step with r.series
1) If your 7 maps are a1 .. a7:
mapcalc a1 = 1; r.mapcalc a2 = 2; r.mapcalc a3 = 3; r.mapcalc a4
= 4; r.mapcalc a5 = 5; r.mapcalc a6 = 6;
Sorry, some typo's (but the given code should be ok): set all values
4/7 quantile to null(), not 0, and you want to calculate the average,
not the sum
On Fri 15 Mar 2013 10:05:51 AM CET, Paulo van Breugel wrote:
Hi Miltinho
I assume you want the mean of the three highest values for each
Dear all,
Thanks for all replies. I will check it out thoughout the weekend.
Just clarifying something, I need to do the estimations focusing on
each pixels, and not for the full map (I was not that clear before).
Also as my raster maps are very large (~50,000x60,000 pixels) maybe R
(at least on
My suggestion does just that, per pixel calculations. And as it is just
simple GRASS functions, you should have no problem running it (perhaps a
bit of patients depending on your computer).
On Fri, Mar 15, 2013 at 12:13 PM, Milton Cezar Ribeiro
miltinho.astrona...@gmail.com wrote:
Dear all,
Hi Milton,
On Friday 15 Mar 2013 08:13:16 Milton Cezar Ribeiro wrote:
Dear all,
Thanks for all replies. I will check it out thoughout the weekend.
Just clarifying something, I need to do the estimations focusing on
each pixels, and not for the full map (I was not that clear before).
In
I have a set of 7 raster maps.
I am able to calculate several stats with these mapas using r.series.
Now I need to calculate the mean of the tree highest values of my 7 maps.
Any idea of how can I do that?
cheers
--
Miltinho - m...@rc.unesp.br
Laboratório de Ecologia Espacial e Conservação -