[GRASSLIST:4648] Re: sum in r.mapcalc

Glynn Clements glynn.clements at virgin.net
Fri Oct 4 07:15:54 EDT 2002


Martin Wegmann wrote:

> I want to calculate the average and standard deviation of a image time
> series. To calculate the average in r.mapcalc is no problem, but how
> can I calculate s.d.? I couldn't find a sum sign in the manual. Or is
> there already a command for calcualting s.d. of several images?

r.mapcalc doesn't include variance or standard deviation functions. It
doesn't have a variadic "sum" operator either; you would need to write
it as e.g. "a + b + c".

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-user mailing list