[GRASS-dev] Re: GRASS 7 status overview

Glynn Clements glynn at gclements.plus.com
Mon Feb 15 09:49:16 EST 2010


Markus Neteler wrote:

> >>> Should r.statistics simply be replaced with r.statistics2?
> >>
> >> You need both r.statistics2 (accumulator-based statistics) and
> >> r.statistics3 (quantiles) to get most of the functionality of
> >> r.statistics.
> 
> What is the difference between r.quantile and r.statistics3 (quantiles)?

r.quantile prints quantiles for a specific map, similar to
"r.univar -e" (but vastly more efficient for large maps).

r.statistics3 calculates quantiles for a cover/base combination, and
optionally generates a reclass of the base map, similar to
"r.statistics method=median" (but more efficient, not limited to
integer data, and for arbitrary quantiles).

> >>> It seems that r.statistics3 should be renamed to something more
> >>> descriptive as it differs functionally from r.statistics
> >>
> >> It can be used as a substitute for r.statistics method=median, but can
> >> calculate arbitrary quantiles. It's derived from r.quantile.
> 
> Is there a way to merge r.quantile and r.statistics3 since both do quantiles?

It should be possible to make r.statistics3 behave like r.quantile in
the absence of a base map.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list