Smooth Raster

Running programmatically

Smooth a raster using Gaussian function on 3 x 3 or 5 x 5 neighborhood. Read more about Gaussian smoothing  here.

Inputs:

Output:

Examples:

A profile of a raster before and after smoothing.

smooth_profile1.jpg

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name SmoothRaster
<input raster> A String representing the input raster dataset.
<output raster> A String - the full name of the output raster.
<neighborhood size> An Integer indicating the neighborhood size to be used. Valid inputs are 3 and 5.

Running the function

ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETSurface\ETSRun.exe")

Language Syntax
Python subprocess.call([ETSPath, "SmoothRaster", "input raster", "output raster", "neighborhood size"])
.NET using ETSRun.exe StartInfo.FileName = ETSPath
StartInfo.Arguments = "SmoothRaster" "input raster" "output raster" "neighborhood size"
.NET using ETSOutX.dll SmoothRaster(input raster, output raster, neighborhood size)
ArcPy arcpy.SmoothRaster("input raster", "output raster", "neighborhood size")

Notes:

(Go to TOP)