This tool returns a Max operation on two rasters or a raster and a constant value.
NoData values in the input image will be assigned NoData values in the output image.
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("Max", 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("Max", args, false)