Clean Raster Boundaries

Running programmatically

Cleans the noise around the boundaries between zones of an integer grid. 3 x 3 neighborhood is analyzed for each cell and the value of the cell is set to the value of the majority of the neighbors.

Inputs:

Output:

Examples:

Before Clean Boundaries.

boundaries0.jpg

After Clean Boundaries.

boundaries1.jpg

Notes:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name CleanRasterBoundaries
<input raster> A String representing the input raster dataset.
<output raster> A String - the full name of the output raster.

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, "CleanRasterBoundaries", "input raster", "output raster"])
.NET using ETSRun.exe StartInfo.FileName = ETSPath
StartInfo.Arguments = "CleanRasterBoundaries" "input raster" "output raster"
.NET using ETSOutX.dll CleanRasterBoundaries(input raster, output raster)
ArcPy arcpy.CleanRasterBoundaries("input raster", "output raster")

Notes:

(Go to TOP)