Opened 4 years ago

Closed 3 years ago

#2705 closed enhancement (invalid)

r.clump maintain original categories

Reported by: lucadelu Owned by: grass-dev@…
Priority: major Milestone: 7.0.4
Component: Raster Version: unspecified
Keywords: r.clump classification Cc:
CPU: Unspecified Platform: Unspecified

Description

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 in=lsat7_2000_10,lsat7_2000_20,lsat7_2000_30,lsat7_2000_40,lsat7_2000_50,lsat7_2000_61,lsat7_2000_70,lsat7_2000_80

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 output=lsat7_2000_maxlik
# 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

Change History (6)

comment:1 Changed 4 years ago by marisn

Sorry, Luca, but I fail to see an use case here. r.clump identifies separate objects in a raster map, thus it is useful only if a new category number is assigned to the new object. Your proposed change would just write out an output map that matches the input map without any changes.

comment:2 Changed 4 years ago by neteler

Milestone: 7.0.17.0.2

Ticket retargeted after 7.0.1 milestone closed

comment:3 Changed 3 years ago by neteler

Milestone: 7.0.27.0.3

Ticket retargeted after milestone closed

comment:4 Changed 3 years ago by neteler

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:5 Changed 3 years ago by neteler

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:6 Changed 3 years ago by mlennert

Resolution: invalid
Status: newclosed

As there hasn't been any reaction from the OP, and I agree with Maris' remark, I'm taking the freedom to close this bug.

Note: See TracTickets for help on using tickets.