[GRASSLIST:5361] Re: idea for new tool

Gordon Keith gordon.keith at csiro.au
Thu Jan 23 16:26:52 EST 2003


On Fri, 24 Jan 2003 02:13, Carlos Henrique Grohmann de Carvalho wrote:

> I was thinking, why there isn't a command similar to s.windavg to
> raster maps? It coulsd be even better, if there were more than just
> average, but sum, and maybe more.
>
> I'm saying that because s.windavg does what I need, but calculations
> with sites (and vectors) are VERY time-consuming, and if we could do
> the same operation with raster, lot of time would be saved.

Have a look at s.cellstat, 
http://pweb.jps.net/~egm2/grass/s.cellstats/s.cellstats.html ,
its a combination of s.univar and s.windavg with very acceptable 
performance.

r.to.sites -a
s.cellstat
s.to.rast 

Should do everything you want.

I'm not sure of the current status of s.cellstat. It was written by Eric 
Miller back in September. He was going to add it to the source tree, 
but I don't know if he has or what version.

Regards
Gordon

-- 

Gordon Keith
Programmer/Data Analyst
Marine Acoustics
CSIRO Marine Research
http://www.marine.csiro.au

He has shown you, O man, what is good; And what does the Lord require of 
you,
but to do justly, to love mercy and to walk humbly with your God?
  -- Micah 6:8




More information about the grass-user mailing list