[GRASS-user] Eliminat small patches

Nick Jachowski njachowski at gmail.com
Mon Oct 3 14:27:16 EDT 2011


Hi Luisa,

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.

Best,
Nick



On Tue, Oct 4, 2011 at 12:57 AM, Luisa Peña <luisapena1979 at gmail.com> wrote:

> Greetings
>
> 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)
> THanks
> Luisa
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20111004/6b0766fc/attachment.html


More information about the grass-user mailing list