<br><div class="gmail_quote"><div> Moritz:<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><span class="HOEnZb"><font color="#888888">
<br>
</font></span>Since you have the max_raster value, can&#39;t you just take that map out of
 the list you submit to r.series and find the new max_raster and value ?<br></blockquote><br></div><br>Unfortunately, I can&#39;t. There is not on single map which is the maximum everywhere. The calculation is done in a cell-by-cell basis, so different maps have the maximum value locally. <br>
<br>Somehow, if after identifying the maximum value, I could make it zero or -9999, for instance, then I could re-run r.series to get the second largest value, but I don&#39;t know how to do it.<br><br>But thanks anyway.<br>
<br>Cheers,<br>Marcello.<br><br>