this bug's URL: http://intevation.de/rt/webrt?serial_num=5202
-------------------------------------------------------------------------
Subject: Bug with floating point maps in r.stats
Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
Hi,
there is a bug in r.stats.
The cell counting seems to be wrong.
Using the test suite mapset i get the following result:
Mapset <testmapset> in Location <TestLocation> GRASS 6.3.cvs > g.region -p res=200
GRASS 6.3.cvs > r.mapcalc "stat_test=col()*1.0"
GRASS 6.3.cvs > r.stats -npc input=stat_test nsteps=10
100%
1-1.9 10 12.50%
1.9-2.8 10 12.50%
2.8-3.7 10 12.50%
3.7-4.6 10 12.50%
4.6-5.5 10 12.50%
5.5-6.4 10 12.50%
6.4-7.3 10 12.50%
7.3-8.2 10 12.50%
8.2-9.1 10 12.50%
9.1-10 10 12.50%
GRASS 6.3.cvs > r.stats -npc input=stat_test nsteps=2
100%
1-5.5 90 102.27%
5.5-10 10 11.36% <------------ ???
GRASS 6.3.cvs > r.stats -npc input=stat_test nsteps=3
100%
1-4 50 57.47%
4-7 40 45.98%
7-10 10 11.49% <------------ ???
Best regards
Soeren
-------------------------------------------- Managed by Request Tracker