Increment

The Increment tool increases the grid cell values in an input raster file by the corresponding grid cell values in a second raster or by a user-specified constant value. Notice that if the specified increment raster is a Boolean (i.e. contains only 1's and 0's), or a constant value of 1 is specified, then the result is the traditional increment (++) operation. If a value other than 1 is used, then the tool outputs the result of an Add AND Assignment (+=) operator. The only difference between this tool and the Add tool is that Add outputs to a new raster, whereas Increments simply updates the input raster. This tool is paired with the Decrement tool, which can be used to decrease the grid cell values in a raster.

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input1.dep"
incrementFile = wd + "input2.dep"
args = [inputFile, incrementFile]
pluginHost.runPlugin("Increment", args, False)

This is a Groovy script also using the tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def incrementValue = "5"
String[] args = [inputFile, incrementValue]
pluginHost.runPlugin("Increment", args, false)

Credits: