Available with Image Analyst license.
Available with Spatial Analyst license.
Overview
Calculates statistics on values of a raster within the zones of another dataset.
A zone is defined as all areas in the input that have the same value. These areas do not have to be contiguous. When the zone and value inputs are both rasters of the same resolution, they will be used directly. If the resolutions are different, an internal nearest neighbor resampling is applied to make the resolutions match to that of the coarser input, before the zonal operation is performed.
For more information, see the How the zonal statistics tools work topic in the Spatial Analyst tool help.
This is a global raster function.
Notes
The Zone Raster must be an integer raster input. If you have feature zones, first convert the feature data into a raster with the Feature to Raster geoprocessing tool before using it in this function. Set the cell size and snap raster environment to the Value Raster when converting the feature data to raster.
When specifying the input zone data, the default Zone Field will be the first available integer or text field.
The Value Raster can be either integer or floating point. However, when it is floating-point type, the zonal calculations for Majority, Minority, and Variety will not be computed.
The data type of the output is dependent on the zonal calculation being performed and the input Value Raster type. See How Zonal Statistics works topic in the Spatial Analyst tool help for more information.
For Majority and Minority calculations, when there is a tie, the output for the zone is based on the lowest of the tied values.
Parameters
Parameter name | Description |
---|---|
Zone Raster (Required) | The dataset that defines the zones. The zones can be defined by an integer raster. |
Zone Field (Required) | The field that contains the values that define each zone. It can be an integer or a string field of the zone raster. |
Value Raster (Required) | The raster that contains the values on which to calculate a statistic. |
Statistics Type | Specifies the statistic type to be calculated.
|
Percentile Value | The percentile to calculate. The default is 90, for the 90th percentile. The value can range from 0 through 100. The 0th percentile is essentially equivalent to the Minimum statistic, and the 100th percentile is equivalent to Maximum. A value of 50 will produce essentially the same result as the Median statistic. This option is only available if the Statistics type parameter is set to Percentile. |
Percentile Interpolation Type | Specifies the method of interpolation to be used when the specified percentile value lies between two input cell values from the input value raster.
This option is only available if the Statistics type parameter is set to Median or Percentile. |
Ignore NoData in Calculations | Specifies whether NoData values in the Value Raster will influence the results of the zone that they fall within.
|
Process as Multidimensional | Specifies how the input rasters will be processed if they are multidimensional.
|
Environment settings
Geoprocessing environment settings for global functions are controlled at the application level. Setting processing environments in ArcGIS Pro can be done by clicking the Environments button on the Analysis tab. See Analysis environments and Spatial Analyst for additional details on environment settings.
The following environments are supported by this global function: