Zonal Statistics as Table

Title  Zonal Statistics as Table

Summary

Summarizes the values of a raster within the zones of another dataset and reports the results as a table.


Usage

Syntax

Parameter Explanation
in_zone_data

The dataset that defines the zones.The zones can be defined by an integer raster or a feature layer.

zone_field

The field that contains the values that define each zone.It can be an integer or a string field of the zone dataset.

in_value_raster

The raster that contains the values for which a statistic will be calculated.

out_table

The output table that will contain the summary of the values in each zone.The format of the table is determined by the output location and path. By default, the output will be a geodatabase table if in a geodatabase workspace, and a dBASE table if in a file workspace.

ignore_nodata (Optional)

Specifies whether NoData values in the value input will be ignored in the results of the zone that they fall within.Checked—Within any particular zone, only cells that have a value in the input value raster will be used in determining the output value for that zone. NoData cells in the value raster will be ignored in the statistic calculation. This is the default.Unchecked—Within any particular zone, if NoData cells exist in the value raster, they will not be ignored and their existence indicates that there is insufficient information to perform statistical calculations for all the cells in that zone. Consequently, the entire zone will receive the NoData value on the output raster.

statistics_type (Optional)

Specifies the statistic type to be calculated.All—All of the statistics will be calculated. This is the default.Mean—The average of all cells in the value raster that belong to the same zone as the output cell will be calculated.Majority—The value that occurs most often for all cells in the value raster that belong to the same zone as the output cell will be calculated.Majority count—The frequency of all cells that contain the majority value in the value raster that belong to the same zone as the output cell will be calculated.Majority percentage—The percentage of cells that contain the majority value in the value raster that belong to the same zone as the output cell will be calculated.Maximum—The largest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.Median—The median value of all cells in the value raster that belong to the same zone as the output cell will be calculated.Minimum—The smallest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.Minority—The value that occurs least often for all cells in the value raster that belong to the same zone as the output cell will be calculated.Minority count—The frequency of all cells that contain the minority value in the value raster that belong to the same zone as the output cell will be calculated.Minority percentage—The percentage of cells that contain the minority value in the value raster that belong to the same zone as the output cell will be calculated.Percentile—The percentile of all cells in the value raster that belong to the same zone as the output cell will be calculated. The 90th percentile is calculated by default. You can specify other values (from 0 to 100) using the Percentile values parameter.Range—The difference between the largest and smallest value of all cells in the value raster that belong to the same zone as the output cell will be calculated.Standard deviation—The standard deviation of all cells in the value raster that belong to the same zone as the output cell will be calculated.Sum—The total value of all cells in the value raster that belong to the same zone as the output cell will be calculated.Variety—The number of unique values for all cells in the value raster that belong to the same zone as the output cell will be calculated.Minimum and Maximum—Both the minimum and maximum statistics will be calculated.Mean and Standard deviation—Both the mean and standard deviation statistics will be calculated.Minimum, Maximum, and Mean—The minimum, maximum, and mean statistics will be calculated.Majority value, count, and percentage—The majority value, count, and percentage statistics will be calculated.Minority value, count, and percentage—The minority value, count, and percentage statistics will be calculated.

process_as_multidimensional (Optional)

Specifies how the input rasters will be calculated if they are multidimensional.Unchecked—Statistics will be calculated from the current slice of the input multidimensional dataset. This is the default.Checked—Statistics will be calculated for all dimensions of the input multidimensional dataset.

percentile_values (Optional)

The percentile that will be calculated. The default is 90, indicating the 90th percentile.The values can range from 0 to 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 parameter is only available if the Statistics type parameter is set to Percentile or All.

percentile_interpolation_type (Optional)

Specifies the method of interpolation that will be used when the percentile value falls between two cell values from the input value raster.Auto-detect—If the input value raster is of integer pixel type, the Nearest method will be used. If the input value raster is of floating point pixel type, the Linear method will be used. This is the default.Nearest—The nearest available value to the desired percentile is used.Linear—The weighted average of the two surrounding values from the desired percentile is used.

circular_calculation (Optional)

Specifies how the input raster will be processed for circular data.Unchecked—Ordinary linear statistics will be calculated. This is the default.Checked—The statistics for angles or other cyclic quantities, such as compass direction in degrees, daytimes, and fractional parts of real numbers, will be calculated.

circular_wrap_value (Optional)

The value that will be used to round a linear value to the range of a given circular statistic. Its value must be a positive integer or a floating-point value. The default value is 360 degrees.This parameter is only supported if the  Calculate Circular Statistics parameter is checked.

out_join_layer (Optional)

The output layer that will be created by joining the output table to the input zone data.

esri_out_feature_service_name (Optional)

The name of the hosted feature service containing all the feature or table results of the tool. When no name is specified, standard feature or table results will still be available.

Code Samples

Tags

average, cube, largest, maximum, median, minimum, multidimensional zonal stats, overlap, overlapping, overlapping features, statistical, stddev, stdev, total, unique, zonal stats

Credits

Use limitations