Power

This tool creates a new raster in which each grid cell is calculated value of one input raster raised to the power of a second input raster, a constant raised to the power of values in a raster, or a raster raised to the power of a constant. Moderate to large values in the power will result in very large values in the output raster and this may cause errors when you try to display the data.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
inputFile1 = wd + "input1.dep"
inputFile2 = wd + "input2.dep"
outputFile = wd + "output.dep"
args = [inputFile1, inputFile2, outputFile]
pluginHost.runPlugin("Power", args, False)

This is a Groovy script also using the tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def constant = "5.6"
def outputFile = wd + "output.dep"
String[] args = [inputFile, constant, outputFile]
pluginHost.runPlugin("Power", args, false)

Credits: