[GRASS-user] sum of several raster maps

Florian Kindl florian.kindl at uibk.ac.at
Thu Apr 19 10:36:58 EDT 2007


On Apr 19 [15:40], Andi Jochem wrote:
> Hi,
> I have several Raster Maps (1 - 365). I would like to create one map by adding all these maps together. 
> Is there any function to do so without using 
> 
> r.mapcalc map = map1 + map2 + map3....+map365
> 

why not use r.mapcalc?

$ str="r.mapcalc map = map1"
$ for i in `seq 2 365`; do str=$str+" + map$i"; done
$ $str

\f.



-- 
Florian Kindl
Institute of Geography
University of Innsbruck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20070419/3c8ab9e1/attachment.bin


More information about the grass-user mailing list