[GRASS-user] merging small areas but keep raster categories

Stefan Blumentrath Stefan.Blumentrath at nina.no
Sun Mar 10 04:06:25 PDT 2019


Hi Ken,

Did you try the rmarea method for r.reclass.area?
That converts to vector, runs v.clean with rmarea and then converts back to raster (if I understood correctly...

Cheers,
Stefan
________________________________
From: grass-user <grass-user-bounces at lists.osgeo.org> on behalf of Ken Mankoff <mankoff at gmail.com>
Sent: Saturday, March 9, 2019 9:44:31 PM
To: grass-user
Subject: [GRASS-user] merging small areas but keep raster categories


I'd like to merge small areas from a raster with their large neighbors.

I can do this with `r.clump` with the `minsize` argument.

But r.clump reclassifies everything, which is causing problems downstream with my workflow. I've tried working around this with `r.reclass.area ... mode=greater`, but that doesn't have the same functionality.

Can anyone suggest a workflow or tool that merges clumps but does not re-categorize them?

Thanks,

 -k.
_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190310/cffb8bf0/attachment-0001.html>


More information about the grass-user mailing list