<div dir="ltr">Yes of course, r.statistics resp. r.statistics2 is doing the job. I just mixed up the the maps when I tried it the first time.<div>Thanks Markus and Moritz!</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Nov 28, 2013 at 9:22 AM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 26/11/13 16:28, Johannes Radinger wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'd like to calculate the sum of all raster values that belong to a<br>
certain group. This spatially organized group is also indicated by an<br>
overlay raster (same resolution). Finally I want to assign these sums to<br>
a new raster. That might sound slightly complicated but here an example:<br>
<br>
Asume following initial raster map A with random values like:<br>
<br>
1-2-1-1-3-4-3-4-2-5-2-3<br>
<br>
and an overlay raster indicating 3 groups:<br>
<br>
1-1-1-1-2-2-2-2-3-3-3-3<br>
<br>
the sums for the groups are:<br>
group 1 = 5<br>
group 2 = 14<br>
group 3= 12<br>
<br>
so the final raster would be:<br>
<br>
5-5-5-5-14-14-14-14-12-12-12-<u></u>12<br>
<br>
How can such a task be achieved in GRASS (7)?<br>
Any ideas?<br>
</blockquote>
<br></div></div>
r.statistics ?<span class="HOEnZb"><font color="#888888"><br>
<br>
Moritz<br>
</font></span></blockquote></div><br></div>