[GRASS-dev] r.univar -g: output total as well

Hamish hamish_b at yahoo.com
Wed Aug 19 20:50:31 EDT 2009


Markus wrote:
> It would be nice to have the "total" output for
> eval `r.univar -g rastermap`

much faster:
  g.region -g | grep cells

but if r.univar was run for other purposes it doesn't cost
anything to also output that number.


> Any objections (say, may it break any scripts)?

AFAICS in scripts/ only d.rast.edit.tcl uses a $total variable.
But maybe something in addons does. not sure


Hamish



      



More information about the grass-dev mailing list