[R-sig-Geo] Filling in holes in DTM

Robert J. Hijmans r.hijmans at gmail.com
Thu Nov 19 18:40:44 CET 2009


Tobin,

In the raster package you can use the focalNA function. It sets the
focal (neighborhood) value, according to a specified function (e.g.
mean), to cells with NA.

raster is available on R-Forge:  install.packages("raster",
repos="http://R-Forge.R-project.org")

Robert

On Thu, Nov 19, 2009 at 6:16 AM, Tobin Cara <cara.tobin at epfl.ch> wrote:
> Hello,
>
> Would anyone know a good way to fill in holes within a DTM? There is no data inside these holes and it is affecting my calculations, so I prefer for an interpolation of the nearest neighbors to fill in a value or something similar.
>
> Thank you,
>
> Cara
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list