[GRASS-user] How to sum a hundred of raster maps using r.mapcalc

Robert Kuszinger kuszinger at giscom.hu
Thu Sep 8 10:27:50 PDT 2016


Miguel,

Do you use Linux or something similar? I can't test but maybe works on
Windows as well with bash shell:


r.mapcalc expression=resultmap=`g.list type=raster pattern=arc_0*
separator='+'`


bye
R



2016-09-08 19:13 GMT+02:00 Miguel Carrero <miguel.carrero.pazos at gmail.com>:

> Dear all,
>
> I have 120 raster maps with the same name pattern: arc_01, arc_02, arc_03,
> arc_(...), and want to sum all of them in one. I can do it manually by
> introducing all the raster maps, but, does anyone know any way to do it
> automatically? Maybe with any expression based on the pattern?
>
> Thanks for the attention.
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160908/a0fc848a/attachment.html>


More information about the grass-user mailing list