Invert Raster

Running programmatically

Recalculates the values of the cells of the input raster in such a way that the cell with the lowest value in the input receives the value of the highest cell and vice versa.
If the raster represents a terrain, the valleys become ridges and the ridges - valleys.

Inputs:

Output:

Examples:

Input raster.

allem_topo.jpg

Inverted raster.

allem_inv.jpg

Cross sectional profile of the input and output rasters.

invert_raster.jpg

Notes:

Running Programmatically

(Go to TOP)

Parameters

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

Notes:

(Go to TOP)