<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 8, 2016 at 1:27 PM, Robert Kuszinger <span dir="ltr"><<a target="_blank" href="mailto:kuszinger@giscom.hu">kuszinger@giscom.hu</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>Do you use Linux or something similar? I can't test but maybe works on Windows as well with bash shell:<br><br><br><font size="2"><span style="font-family:monospace,monospace">r.mapcalc expression=resultmap=`g.list type=raster pattern=arc_0* separator='+'`</span></font></div></blockquote></div><br><br></div><div class="gmail_extra">Even on Linux, this can fail when the expression is too long (operating system limits the length of a command), but that's what the file parameter is for in r.mapcalc. You can save the g.list result to a file, in Bash:<br><br></div><div class="gmail_extra"></div><div class="gmail_extra">g.list type=raster pattern="elev*" separator='+' >> expression.txt<br></div><div class="gmail_extra"><br>add whatever else is needed in the expression and then use the file parameter in r.mapcalc (same idea as what Veronica suggests for r.series):<br><br>r.mapcalc file=expression.txt<br><br></div><div class="gmail_extra">For simple cases, r.series is just simpler as Veronica suggests.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Vaclav<br></div><div class="gmail_extra"><br><a href="https://grass.osgeo.org/grass70/manuals/r.mapcalc.html">https://grass.osgeo.org/grass70/manuals/r.mapcalc.html</a><br></div></div>