[GRASSLIST:3310] Re: r.stats
Markus Neteler
neteler at itc.it
Thu Mar 7 07:54:46 EST 2002
Hi Gordon,
On Thu, Mar 07, 2002 at 02:37:57PM +1100, Gordon Keith wrote:
> I'm working my way through getting various statistics out of grass
> using r.statistics, and things seem a little broken. I'm currently
> running 5.0 pre1, but there is no mention of fixes to these routines in
> the release notes.
>
> Has anything changed since pre1 to make it worth getting a more recent
> version?
>
> Particular problems I am having:
>
> > r.statistics base=facies cover=gabo20_slope method=average
> out=avg_slope
> Sorry, <z> is not a valid flag
this problem was fixed recently (2002-03-04), the
next (!) CVS snapshot
http://grass.itc.it/grass5/source/snapshot_release/
will contain the fix (or you get it from CVS directly).
[...r.statistics]
all the problems should be fixed now.
> r.average works, but formats the output such that r.stats -l doesn't
> give meaningful results eg:
>
> > r.statistics base=facies cover=gabo20_slope method=stddev
> out=std_slope
> > r.stats -l std_slope
> 6 1.201934
> 7 4.670386
> 8 1.855619
> 9 2.427760
> 10 2.465637
> * no data
>
> is good, but
>
> > r.average base=facies cover=gabo20_slope out=avg_slope
> > r.stats -l avg_slope
> r.stats: 0.419177-0.427731 from to
> 0.727111-0.735665 from to
> 0.761326-0.769879 from to
> 2.591819-2.600373 from to
> * no data
>
> is useless.
It seems another fix is required here.
> I can get at the results of r.average via r.info, but it takes a lot
> more reformatting.
>
> Regards
> Gordon
Best regards
Markus Neteler
More information about the grass-user
mailing list