[GRASS-user] Eliminat small patches
njachowski at gmail.com
Mon Oct 3 14:27:16 EDT 2011
I wrote a script that does exactly what you want to do. It uses r.clump,
r.stats, and r.reclass in addition to some bash coding to make the input
file for r.reclass from the r.stats output minus the clumps below your
threshold size. Let me know if you want me to send you the code.
I'd be interested if anyone has a better solution.
On Tue, Oct 4, 2011 at 12:57 AM, Luisa Peña <luisapena1979 at gmail.com> wrote:
> I have a bitmask raster (ones and nulls) and I want to eliminate patches,
> with values of 1, that have an area smaller than X ha (or X pixels). How can
> I do this in GRASS (without having to convert to vector)
> grass-user mailing list
> grass-user at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the grass-user