# Filling hole in DEM using ArcGIS Desktop?

How would I fix my DEM because it has holes?

I need to maybe extrapolate from surrounding terrain.

Here is the picture

• Belated welcome to GIS SE! As a new user be sure to take the Tour to learn about our focussed Q&A format. I recommend not thinking about GIS SE as being some sort of online GIS tutor. For your questions to be answered here they should as much as possible describe not just what you want to do, but precisely what you have tried and where you are stuck trying that. – PolyGeo Oct 6 '17 at 0:19

There is a elevation void tool in arcmap. This function uses the Plane Fitting/IDW void fill method. First a basic method is used, where the average of the eight neighboring values are calculated to fill small voids, then the plane fitting method is applied. If the error of the plane fitting method is too large, an inverse distance weighted (IDW) algorithm is applied.

Reference

http://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/elevation-void-fill-function.htm

It's a raster function and needs to be applied as part of a function chain. (C/O Luke)

• No, the Elevation Void Fill function isn't a tool and can't be run like other geoprocessing tools. It's a raster function and needs to be applied as part of a function chain. I recommend you expand your answer to mention this. Imaginary bonus points :) for some details on how to apply the function to a raster! – user2856 Sep 21 '17 at 5:32

The first answer on this GeoNet post makes sense to me. It reads:

I use the following method to fill gaps in DEM. I uses a moving window that searches the DEM for Null data values and fills them with an average of the surrounding pixels.

new_DEM_name = con(isnull(old_DEM_name), focalmean(old_DEM_name, rectangle,4,4), old_DEM_name)

change "new_DEM_name" to anything that you want. "old_DEM_name" is the name of your DEM that has gaps in the data. You can adjust the size of the window by change 4,4 to 6,6 or anything you want.