This tool creates a new raster in which each grid cell is equal to the integer division of the corresponding grid cells in two input rasters or one input raster and a constant value. The calculation differs from regular division in that the result is always an integer value (rounded by truncation). If the second raster / constant is zero the corresponding grid cell in the output raster will be assigned the NoData value.
This is an example of a Python script using this tool:
wd = pluginHost.getWorkingDirectory()
input_file1 = wd + "input1.dep"
input_file2 = wd + "input2.dep"
output_file = wd + "output.dep"
args = [input_file1, input_file2, output_file]
pluginHost.runPlugin("IntDiv", args, False)
And the following is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def constant = "5"
def outputFile = wd + "output.dep"
String args = [inputFile, constant, outputFile]
pluginHost.runPlugin("IntDiv", args, false)