[GRASS-dev] [GRASS GIS] #2625: r.stats's nsteps is not region-sensitive

GRASS GIS trac at osgeo.org
Mon Mar 16 09:25:09 PDT 2015


#2625: r.stats's nsteps is not region-sensitive
-----------------------------+----------------------------------------------
 Reporter:  martinl          |       Owner:  grass-dev@…              
     Type:  defect           |      Status:  new                      
 Priority:  major            |   Milestone:  7.0.1                    
Component:  Raster           |     Version:  svn-trunk                
 Keywords:  r.stats, nsteps  |    Platform:  Unspecified              
      Cpu:  Unspecified      |  
-----------------------------+----------------------------------------------
 `r.stat's nsteps` option is not region-sensitive, in other words ranges
 are calculated from original raster, not from current region. It can be
 very confusing for a user, I am not sure if it's a bug or just
 undocumented behaviour.

 OK, I get 5 classes:

 {{{
 g.region rast=elevation
 r.stats elevation nsteps=5 --q
 55.578793-75.729007
 75.729007-95.879221
 95.879221-116.029436
 116.029436-136.17965
 136.17965-156.329865
 }}}

 Smaller number of classes when using sub-region:

 {{{
 g.region n=219326.524155 s=218357.261131 w=635573.588429 e=637027.482965
 -a
 r.stats elevation nsteps=5 --q
 75.729007-95.879221
 95.879221-116.029436
 116.029436-136.17965
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2625>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list