[GRASS-dev] Re: [GRASS GIS] #475: r.stats: last bin always has a single cell

GRASS GIS trac at osgeo.org
Mon Mar 2 23:27:39 EST 2009

#475: r.stats: last bin always has a single cell
  Reporter:  hamish    |       Owner:  grass-dev at lists.osgeo.org
      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
 1061.064087-1453.903748 294978


Ticket URL: <https://trac.osgeo.org/grass/ticket/475#comment:1>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list