The GRASS GIS module r.series ( man page ) can do this. You can pass the list of input rasters as a comma separated list on the command line, or as a file, with one raster name per line. So (assuming a linux bash shell) if the rasters are named as in your example:
RAST_LIST=`g.list rast pattern="raster*" separator=comma` g.region rast=$RAST_LIST r.series input=$RAST_LIST output=raster_sum method=sum On Tue, Jan 12, 2021 at 7:19 PM Igor Oliveira Ribeiro <igorgeoinforma...@gmail.com> wrote: > > Hi, > I have a list with 15 raster. I would like to make a simple sum of these > raster. I know about raster calculation tool, but the expression would be too > long. Is there a way to replace this expression > (raster1+raster2+...+raster15) by sum(raster1,raster2,...,raster15) for > example? > Thanks > > -- > > See our last paper: > > Impact of biomass burning on a metropolitan area in the Amazon during the > 2015 El Niño: The enhancement of carbon monoxide and levoglucosan > concentrations. > > Igor Oliveira Ribeiro > > Post-Doc on Regional Climate Change, Vulnerability, Impacts and Adaptation - > IPCC/Cuomo/UEA > > > +55 92 98103 7136 | skype: igorflorestal > > > Universidade do Estado do Amazonas | Instituto Nacional de Pesquisas da > Amazônia > > > Visite: www.geoescrita.com.br > > > Think globally, act locally! > > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user -- Micha Silver Ben Gurion Univ Sde-Boker Remote Sensing Lab cell: +972 (52) 3665918 _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user