[GRASS-user] fill gaps
Markus Metz
markus.metz.giswork at googlemail.com
Tue Dec 6 12:24:37 EST 2011
Martin Landa wrote:
> Hi all,
>
> I am doing some post-classification smoothing. First areas lesser than
> 1ha are removed using `r.reclass.area` and then gaps (NULL cells)
> filled using `r.filldir`. My region
>
> rows: 977
> cols: 1227
> cells: 1198779
>
> number of NULL cells to be filled
>
> total null and non-null cells: 1198779
> total null cells: 120560
>
> Unfortunately `r.filldir` is taking ages in GRASS 6. Is there other
> quicker way how to fill gaps (in GRASS 6)?
>
For categorical data you could use r.grow.distance in=mymap
value=mymap_filled which assigns the nearest non-NULL value to a NULL
cell and is pretty fast.
Markus M
> Thanks in advance, Martin
>
> --
> Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
> _______________________________________________
> 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