[GRASS-dev] Re: [GRASS GIS] #474: r.quantile: segfaults with percentile=100

GRASS GIS trac at osgeo.org
Tue Feb 10 18:39:51 EST 2009


#474: r.quantile: segfaults with percentile=100
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect  |      Status:  closed                   
  Priority:  major   |   Milestone:  6.4.0                    
 Component:  Raster  |     Version:  svn-develbranch6         
Resolution:  fixed   |    Keywords:  r.quantile               
  Platform:  Linux   |         Cpu:  x86-32                   
---------------------+------------------------------------------------------
Changes (by hamish):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 thanks, works.

 I notice it does not exactly match r.univar,

 {{{
 G65> r.quantile in=elevation.10m percentile=`seq -s, 0 10 100`
 0:0.000000:1061.064087
 1:10.000000:1153.037231
 2:20.000000:1184.320190
 3:30.000000:1210.821362
 4:40.000000:1251.937646
 5:50.000000:1309.368164
 6:60.000000:1378.708764
 7:70.000000:1440.232398
 8:80.000000:1525.849707
 9:90.000000:1613.602832
 10:100.000000:1846.743408
 }}}

 {{{
 G65> r.univar -ge elevation.10m percentile=`seq -s, 0 10 100`
 percentile_0=1061.06
 percentile_10=1153.04
 percentile_20=1184.32
 percentile_30=1210.82
 percentile_40=1251.94
 percentile_50=1309.37
 percentile_60=1378.71
 percentile_70=1440.23
 percentile_80=1525.85
 percentile_90=1613.6
 percentile_100=1846.74
 }}}

 because r.univar's output has been rounded by %g at very few digits.. (see
 trac #335). otherwise it matches fine.

 closing bug.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/474#comment:3>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list