Less than or equal to

This tool assigns grid cells for which the first input raster (or constant value) is less than or equal to the second input raster (or constant) a new value of 1 (True) in the output raster. Notice that at least one input raster image must be specified for the tool to operate. Grid cells containing NoData values in either of the input rasters will be assigned a NoData value in the output raster. The output raster is of a integer data type and categorical data scale.

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("LessThanEqualTo", 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("LessThanEqualTo", args, false)

Credits: