Different versions!

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

Smooth Raster

Icon Standard Processing tools

Version 1.0

To avoid sharp boundaries between the modified and created geographic features, one may also want to smooth the raster. This tool is designed to reduce abrupt elevation changes in a DEM by averaging the values around each pixel.

The tool Smooth Raster uses filtering, a technique that is widely used in digital image processing. A kernel window defined by the smoothing factor is placed on the raster. The value of the central pixel is then calculated by
(1) multiplying the values of the kernel and the raster, and
(2) summing all the resulting values.
Then the kernel window is moved by one pixel to calculate the value of the next pixel.
We propose Uniform mean or Gaussian low-pass filters that have slightly different characteristics (see these links provided in the step by step below). The only customization parameter is the smoothing factor, representing the radius (in pixels) given to the kernel window. The greater the factor, the smoother the resulting raster is.

Step by step

  1. Click on the icon Icon Set Paleoshorelines. The parameters window will pop up.

  2. In the field How would you like to process the input DEM, choose Smooth raster.

    GUI_smooth raster
  3. In Raster to be modified, choose the DEM you want to smooth the elevation from.

  4. You can choose to smooth only certain areas of the map by checking the box Smooth inside polygon(s) only and selecting the Mask layer to be used.
    You may choose only certain polygons of that layer checking Selected features only.

  5. Choose the Smoothing type: Gaussian filter or Uniform filter.

  6. recommendation

    In this table we provide internet links to the scipy website summarizing the main characteristics of both smoothing types.

    Gaussian filter

    Uniform filter (a.k.a Mean filter)

    Link to Scipy - Gaussian filter

    Link to Scipy - Uniform filter

  7. You can enter the smoothing factor in the text field.

  8. Alternatively, you can choose to retrieve it from the attribute table of the shapefile if there are different values for each mask.

    This factor represents the radius around a given pixel that will be taken into consideration. The greater the number, the smoother will the resulting raster be.

    If you choose to retrieve the values for the smoothing factor from the attribute table but there are masks for which no value is specified there, the default value will be used. This is the number entered in the text field in step 6.
  9. Advanced Parameters

  10. Since the smoothing algorithm averages values for pixels, the shorelines might be affected and slightly moved after using this tool.

    The option to Set paleoshorelines fixed solves this problem by runing the algorithm Set paleoshorelines after the smoothing.

    For this you need to check the box and select the paleoshorelines layer.

    If this option is activated, the rescaling modification mode is used with following parameters:
    Areas to submerge resacaled between -5 and 0 meters,
    Areas to emerge rescaled between 0 and 5 meters.

  11. Choose the Output file path, and click Run.

If the smoothing option is selected from the Fill gaps tool, the option to set back paleoshorelines is not available.

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