Different versions!

The information on this page corresponds to
Version 1.1
If you are using another version of Terra Antiqua, select it below.

Fill gaps

Fill gaps
Icon Standard Processing tools

Version 1.0

Some areas may end up missing elevation values. This issue is common for paleogeographic maps because, after rotating present-day topography / bathymetry, gaps can appear between blocks. These gaps represent areas where the topography / bathymetry was destroyed by deformation or subduction of a crust portion.

This tool is intended to interpolate values for these gaps. It generates elevation data in each empty pixel by averaging pixel values around it, using inverse distance weighting. There is the option to use it on the entire map or constrain it to a region.

The inverse distance weighting (IDW) interpolation method, implemented in the GDAL library, is a fast algorithm to fill the empty pixels (NoData values). The Fill gaps tool gets NoData values from the raster's metadata and seeks their position to be able to fill these areas, interpolating between the surrounding valid values.

For very large areas a more realistic outcome may be obtained by creating new topo/bathymetry using the tool Create Topo- / Bathymetry Icon for Create Topo/Bathymetry.


Step by step

  1. Click on the icon Icon Standard Processing tools. The Standard Processing window will pop up.

  2. In the field How would you like to process the input DEM, choose Fill gaps.

    GUI_Fill gaps
  3. In Raster to be modified, choose the DEM you want to fill gaps in.

  4. In Filling Type, select how you want the algorithm to fill the gaps in your map.

    • Interpolation: elevation values for empty pixels will be calculated interpolating from adjacent pixels using IDW.

    • Fixed Value: all empty pixels are filled with the value entered in Filling Value.

  5. If you have a set of masks you want to limit the interpolation to, check the box Fill inside polygon(s) only. In this case, you will have to select the layer containing these masks in the field below. If you want to fill the gaps in the full extent of the map, skip this step and leave the box unchecked.

  6. If you want to smooth the output raster once all gaps are interpolated, check the box Smooth the resulting raster, select a smoothing type, and a smoothing factor. Otherwise, skip this step.

  7. If you have selected the option to Fill inside polygon(s) in step 5, the smoothing will be constrained to the same polygon(s) as the interpolation.

    For details about raster smoothing, please refer to this page: Smooth raster.
  8. Choose the Output file path, and click Run.


If you have any comments or discussion, you may add a post here:
Link to general discussions on Terra Antiqua