[GRASS-user] Re: how to only fill small sinks with r.fill.dir

Saber razmjooeis at faunalia.co.uk
Tue Apr 26 12:04:33 EDT 2011


Here is a (not a very quick) solution I can think of:

1- Create an inverse mask
2- convert the mask to vector (r.to.vect)
3- clean the vector file to get rid of the areas not required (v.clean)
4- convert the vector back to raster (v.to.rast)
5- Use the new raster as a mask for filling holes (probably you need step
4.5 to slightly buffer the raster)

Hope that helps


> Any ideas on this?
>
> Bryan
>
> On Mon, Apr 18, 2011 at 14:49, Bryan Keith <bkeith at itascadenver.com>
> wrote:
>> Hello,
>>
>> Is there a way to only fill sinks in a DEM if they are smaller than a
>> certain tolerance?  I have a couple areas of internal drainage that
>> really are correct (and quite large), and I have a quite few small
>> sinks that are incorrect and artifacts of the interpolation.  Any
>> ideas how to this?  r.fill.dir attempt to fill all the sinks.
>>
>> I'm trying to improve the results from r.flow  Too many tracks end in
>> small holes where I'd like them to continue downstream.  Thanks.
>>
>> Bryan
>>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>




More information about the grass-user mailing list