Aggregate Raster

Running programmatically

Derives a new raster with reduced resolution from the original raster. The resolution is defined by the Cell Factor The values of the cells of the output raster are calculated from the input cells using a user defined method - SUM, MIN, MAX, Mean or Median.

Inputs:

Outputs:

Notes:

Example:

Running Programmatically

(Go to TOP)

Parameters

Expression Explanation
Function Name AggegateRaster
<InputRaster> A String - full path to the input raster dataset.
<OutputRaster> A String - full path to the output raster dataset.
<cellFactor> An integer - The value by which to multiply the cell size of the original raster.
{aggregationType} A String - the type of the statistics to be calculated. Valid values:
  • Sum - the sum of the cell values within the neighborhood
  • Min - the minimum values within the neighborhood
  • Max- the maximum value within the neighborhood
  • Mean - the average of the values within the neighborhood
  • Median - the median value in the neighborhood
{extentHandlingType} A String - indicates how the extent of the output raster will be handled. Valid values:
  • Expand - Expands the bottom and right extents of the output raster
  • Truncate - Reduces the number of rows and columns. The extent of the output will be entirely inside of the extents of the input raster
{ignoreNoData} A Boolean idicating how the cells with NoData values in the input will be handled.

Running the function

ETSPath used in the table below is the full path to ETSRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETSurface\ETSRun.exe")

InputRaster
Language Syntax
Python subprocess.call([ETSPath, "AggegateRaster", "InputRaster", "OutputRaster", "cellFactor", "aggregationType", "extentHandlingType", "ignoreNoData"])
.NET using ETSRun.exe StartInfo.FileName = ETSPath
StartInfo.Arguments = "AggegateRaster" "InputRaster" "OutputRaster" "cellFactor" "aggregationType" "extentHandlingType" "ignoreNoData"
.NET using ETSOutX.dll AggegateRaster(InputRaster, OutputRaster, cellFactor, aggregationType, extentHandlingType, ignoreNoData)
ArcPy arcpy.AggegateRaster("InputRaster", "OutputRaster", "cellFactor", "aggregationType", "extentHandlingType", "ignoreNoData")

Notes:

(Go to TOP)