#475: r.stats: last bin always has a single cell
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: [email protected]
Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: Raster | Version: svn-develbranch6
Resolution: | Keywords: r.stats
Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by hamish):
Replying to [ticket:475 hamish]:
> Hi, r.stats seems to be doing something funny: the last bin
> always contains only one cell. Same result with GRASS 5.4.1 -
> 6.5svn on Linux, OSX, Solaris.
apparently in raster/r.stats/stats.c update_cell_stats(), but then I get
lost as I'm not really trained to deal with hash tables.
Interestingly if I change the resolution to misalign I only get the first
output step:
{{{
G65> g.region rast=elevation.dem
G65> r.stats elevation.10m nsteps=2 -c
100%
1061.064087-1453.903748 294978
}}}
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/475#comment:1>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev