<p dir="ltr"></p>
<p dir="ltr">On Nov 8, 2016 3:41 PM, "Helmut Kudrnovsky" <<a href="mailto:hellik@web.de">hellik@web.de</a>> wrote:<br>
><br>
> M. wrote<br>
> > Dear all,<br>
> ><br>
> > I want to sum 13 raster maps, and calculate the mean of areas which<br>
> > overlap<br>
> > among them. I mean, sum all the maps, but in those areas which they<br>
> > overlap<br>
> > calculate the mean of the values.<br>
> ><br>
> > Does anybody know a method to do it?<br>
> ><br>
> > Thanks for the attention,<br>
><br>
> hope to understand it right, so maybe<br>
><br>
> <a href="https://grass.osgeo.org/grass73/manuals/r.series.html">https://grass.osgeo.org/grass73/manuals/r.series.html</a><br>
><br>
> r.series - Makes each output cell value a function of the values assigned to<br>
> the corresponding cells in the input raster map layers.</p>
<p dir="ltr">These methods are relevant:</p>
<p dir="ltr">     count: count of non-NULL cells<br>
     sum: sum of values</p>
<p dir="ltr">By inputting all maps and using these two methods together, you'll get two respective output maps.</p>
<p dir="ltr">Then use the count map to create a mask for the area(s) with highest count values by using an if() condition in r.mapcalc.</p>
<p dir="ltr">Markus</p>