Aggregate

This tool can be used to reduce the grid resolution of a raster by a user specified amount. For example, using an aggregation factor of 2 would result in a raster with half the number of rows and columns. The grid cell values in the output image will consist of the mean, sum, maximum, minimum, or range of the overlapping grid cells in the input raster (four cells in the case of an aggregation factor of 2).

See Also:

Scripting:

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)

Credits: