Filling voids in DEM

6046
5
06-16-2016 02:35 PM
andylohmann
New Contributor

I recently downloaded a DEM and it has several voids in it. There is not a pixel where there should be. Is there a way I can fill these with reasonable data using arc maps 10.3?

0 Kudos
5 Replies
DarrenWiens2
MVP Honored Contributor

See this help page that shows how to use Nibble to fill voids.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

I hope this method will also work:

First, use Focal Statistics—Help | ArcGIS for Desktop using the above DEM to create an interpolated raster. This raster will also have the NoData values filled.

Next, use Raster Calculator—Help | ArcGIS for Desktop with the following expression

Con(IsNull("DEMRASTER"),"FOCALRASTER", "DEMRASTER")

The above expression will replace all the NoData values of DEM with the pixel values of the Focal-Statistics Output Raster.



Think Location
DanPatterson_Retired
MVP Emeritus

for pixel sized holes normally (depends on window used)... for larger holes, the regiongroup, nibble combination is the way to go

XanderBakker
Esri Esteemed Contributor

For small areas with NoData I would go for the solution provided by Jayanta Poddar  (but using the two steps in a single raster calculator expression). For larger areas in the past I have used a procedure to:

  • detect the NoData Areas
  • expand the NoData Areas
  • use the expanded raster to get the border with values of the DEM
  • convert that raster into points
  • create a TIN
  • convert to raster and replace the NoData values with the TIN 2 raster result

However, these are a lot of steps and what is most important, if you have a large area of NoData values, you probably don't know what happens there and any method will assume things that may not be true.

Robert_LeClair
Esri Notable Contributor

The Fill (Spatial Analyst) GP tool may be worth a look as well.

0 Kudos