[GRASS-dev] [GRASS GIS] #2400: r.reclass.area: add option to use r.clump's -d flag

GRASS GIS trac at osgeo.org
Mon Aug 25 04:10:02 PDT 2014


#2400: r.reclass.area: add option to use r.clump's -d flag
----------------------------+-----------------------------------------------
 Reporter:  peifer          |       Owner:  grass-dev@…              
     Type:  enhancement     |      Status:  new                      
 Priority:  normal          |   Milestone:  7.0.0                    
Component:  Python          |     Version:  svn-trunk                
 Keywords:  r.reclass.area  |    Platform:  All                      
      Cpu:  Unspecified     |  
----------------------------+-----------------------------------------------

Comment(by peifer):

 Replying to [comment:5 neteler]:
 > I am not sure if the difference between -c and -d is already obvious.
 > And I thought that the proposed -d should correspond to that of r.clump
 in
 > its behaviour?

 Of course. My wording was bad. My thought was that people using
 r.reclass.area focus more on the size limit. For them, the clumping is
 only and intermediate step towards applying an area size filter. Why not
 blindly copying the text from r.clump (which is a bit repetitive in
 itself, though):

 {{{
 -d  Clump also diagonal cells
     Clumps are also traced along diagonal neighboring cells
 }}}


 PS, and somewhat beyond the enhancement request in this ticket:
 What would be really neat for experimenting with different area sizes:
 r.clump would write the area size in px into the category labels and
 r.reclass would be able to use the size values from there. One would clump
 once only and could check the effects of various rules (by reclassifying
 unwanted size classes to NULL).

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



More information about the grass-dev mailing list