[GRASS-dev] [GRASS GIS] #2705: r.clump maintain original categories

GRASS GIS trac at osgeo.org
Tue Jul 7 01:16:01 PDT 2015

#2705: r.clump maintain original categories
 Reporter:  lucadelu                |      Owner:  grass-dev@…
     Type:  enhancement             |     Status:  new
 Priority:  major                   |  Milestone:  7.0.1
Component:  Raster                  |    Version:  unspecified
 Keywords:  r.clump classification  |        CPU:  Unspecified
 Platform:  Unspecified             |
 r.clump should be able to maintain the categories of original raster, this
 is really useful for classified maps.

 An example

 i.group group=lsat7_2000 sub=lsat7_2000

 i.cluster group=lsat7_2000 sub=lsat7_2000 signature=cluster_sign classes=5

 # the output has 5 classes
 i.maxlik group=lsat7_2000 sub=lsat7_2000 signaturefile=cluster_sign
 # the output now has something like 21000 classes, it should be able to
 maintain the 5 original classes
 r.clump in=lsat7_2000_maxlik out=lsat7_2000_maxlik_clump

Ticket URL: <https://trac.osgeo.org/grass/ticket/2705>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list