Absolute value

This tool creates a new raster in which each grid cell is equal to the absolute value of the corresponding grid cell in an input raster. The absolute value is a number that is equal in magnitude but is always positive.

See Also:


This is an example of a Python script using this tool:

wd = pluginHost.getWorkingDirectory()
input_file = wd + "input.dep"
output_file = wd + "output.dep"
args = [input_file, output_file]
pluginHost.runPlugin("Abs", args, False)

And the following is a Groovy script also using this tool:

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