[GRASS-dev] Re: [GRASS GIS] #763: r.statistics method=distribution: no percentages for negative basemap values

GRASS GIS trac at osgeo.org
Thu Sep 9 20:19:47 EDT 2010


#763: r.statistics method=distribution: no percentages for negative basemap
values
--------------------+-------------------------------------------------------
 Reporter:  peifer  |       Owner:  grass-dev@…              
     Type:  defect  |      Status:  new                      
 Priority:  normal  |   Milestone:  6.4.0                    
Component:  Raster  |     Version:  6.4.0 RCs                
 Keywords:          |    Platform:  Unspecified              
      Cpu:  x86-32  |  
--------------------+-------------------------------------------------------

Comment(by glynn):

 Replying to [comment:1 neteler]:

 > Could it be the lack of sufficient NULL detection?
 >
 > See
 source:grass/branches/releasebranch_6_4/raster/r.statistics/o_distrib.c#L68

 I suspect that "basecat > 0" should be either "basecat != 0" or absent,
 depending upon whether category zero causes problems for some other
 component (e.g. r.stats).

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/763#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list