[GRASS-user] Re: Calculate averagfe of raster maps without mapcalc

Marcello Gorini gorini at gmail.com
Wed Feb 16 11:00:53 EST 2011


>Kim:
>
>I need to calculate the average of a set of raster images. How can I
>calculate it without using mapcalc?
>THanks


Hello Kim,

You can use the module r.series. Like this, if you have few images:

r.series input=image1,image2,image3... method=average output=averaged_image

Or if you have a bunch of images with similar names, you can do:

r.series input="`g.mlist pattern=the_pattern_within_the_ names sep=,`"
method=average output=averaged_image

Hope this helps.

Marcello.



-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Calculate-averagfe-of-raster-maps-without-mapcalc-tp6031736p6032330.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list