The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
inputFile = wd + "DEM filled.dep"
outputFile = wd + "output.dep"
aggFactor = "2"
aggType = "mean"
args = [inputFile, outputFile, aggFactor, aggType]
pluginHost.runPlugin("Aggregate", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "DEM filled.dep"
def outputFile = wd + "output.dep"
def aggFactor = "2"
def aggType = "mean"
String[] args = [inputFile, outputFile, aggFactor, aggType]
pluginHost.runPlugin("Aggregate", args, false)