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.
Before Clean Boundaries.

After Clean Boundaries.

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. |
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:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.