<?xml version="1.0" encoding="UTF-8"?><metadata>
<Esri>
<CreaDate>20200330</CreaDate>
<CreaTime>10172500</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>TRUE</SyncOnce>
<ModDate>20200820</ModDate>
<ModTime>152055</ModTime>
</Esri>
<dataIdInfo>
<idCitation>
<resTitle>ZonalStatisticsAsTable</resTitle>
<date>
<createDate>20200330</createDate>
</date>
</idCitation>
<idAbs>
<para>Calculates the values of a raster within the zones of another dataset and reports the results to a table.</para>
</idAbs>
<descKeys KeyTypCd="005">
<keyTyp>
<keyTyp>005</keyTyp>
</keyTyp>
<keyword/>
</descKeys>
</dataIdInfo>
<distInfo>
<distributor>
<distorFormat>
<formatName>ArcToolbox Tool</formatName>
</distorFormat>
</distributor>
</distInfo>
<mdDateSt>20200428</mdDateSt>
<mdContact>
<rpOrgName>Environmental Systems Research Institute, Inc. (Esri)</rpOrgName>
<rpCntInfo>
<cntAddress>
<delPoint>380 New York Street</delPoint>
<city>Redlands</city>
<adminArea>California</adminArea>
<postCode>92373-8100</postCode>
<eMailAdd>info@esri.com</eMailAdd>
<country>United States</country>
</cntAddress>
<cntPhone>
<voiceNum>909-793-2853</voiceNum>
<faxNum>909-793-5953</faxNum>
</cntPhone>
<cntOnlineRes>
<linkage>http://www.esri.com</linkage>
</cntOnlineRes>
</rpCntInfo>
<role>
<RoleCd>007</RoleCd>
</role>
</mdContact>
<tool displayname="ZonalStatisticsAsTable" name="ZonalStatisticsAsTable" softwarerestriction="none" toolboxalias="ra">
<summary>
<para>Calculates the values of a raster within the zones of another dataset and reports the results to a table.</para>
</summary>
<alink_name>ZonalStatisticsAsTable_ra</alink_name>
<toolIllust alt="Zonal Statistics As Table tool" src="withheld" type="dialog"/>
<toolIllust alt="Zonal Statistics As Table tool" src="withheld" type="illustration"/>
<parameters>
<param datatype="String" direction="Input" displayname="inputZoneRasterOrFeatures" expression="inputZoneRasterOrFeatures" name="inputZoneRasterOrFeatures" sync="true" type="Required">
<pythonReference>
<para>The input that defines the zones.</para>
<para>Both raster and feature can be used for the zone input.</para>
</pythonReference>
<dialogReference>
<para>The input that defines the zones.</para>
<para>Both raster and feature can be used for the zone input.</para>
</dialogReference>
</param>
<param datatype="String" direction="Input" displayname="inputValueRaster" expression="inputValueRaster" name="inputValueRaster" sync="true" type="Required">
<pythonReference>
<para>Raster that contains the values on which to summarize a statistic.</para>
</pythonReference>
<dialogReference>
<para>Raster that contains the values on which to summarize a statistic.</para>
</dialogReference>
</param>
<param datatype="String" direction="Input" displayname="outputTableName" expression="outputTableName" name="outputTableName" sync="true" type="Required">
<pythonReference>
<para>
The name of the output table.</para>
<para>If the table already exists, you will be prompted to provide another name.</para>
</pythonReference>
<dialogReference>
<para>
The name of the output table.</para>
<para>If the table already exists, you will be prompted to provide another name.</para>
</dialogReference>
</param>
<param datatype="String" direction="Input" displayname="zoneField" expression="zoneField" name="zoneField" sync="true" type="Required">
<pythonReference>
<para>The field that defines each zone.</para>
<para>It can be an integer or a string field of the zone dataset.</para>
</pythonReference>
<dialogReference>
<para>The field that defines each zone.</para>
<para>It can be an integer or a string field of the zone dataset.</para>
</dialogReference>
</param>
<param datatype="Boolean" direction="Input" displayname="ignoreNodata" expression="{DATA | NODATA}" name="ignoreNodata" sync="true" type="Optional">
<pythonReference>
<para>Denotes whether NoData values in the value input will influence the results of the zone that they fall within.</para>
<bulletList>
<bullet_item>DATA—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.</bullet_item>
<bullet_item>NODATA—Within any particular zone, if any NoData cells exist in the value raster, it is deemed that there is insufficient information to perform statistical calculations for all the cells in that zone; therefore, the entire zone will receive the NoData value on the output raster.</bullet_item>
</bulletList>
</pythonReference>
<dialogReference>
<para>Denotes whether NoData values in the value input will influence the results of the zone that they fall within.</para>
<bulletList>
<bullet_item>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.</bullet_item>
<bullet_item>Unchecked—Within any particular zone, if any NoData cells exist in the value raster, it is deemed that there is insufficient information to perform statistical calculations for all the cells in that zone; therefore, the entire zone will receive the NoData value on the output raster.</bullet_item>
</bulletList>
</dialogReference>
</param>
<param datatype="String" direction="Input" displayname="statisticType" expression="{ALL | MEAN | MAJORITY | MAXIMUM | MEDIAN | MINIMUM | MINORITY | PERCENTILE | RANGE | STD | SUM | VARIETY | MIN_MAX | MEAN_STD | MIN_MAX_MEAN}" name="statisticType" sync="true" type="Optional">
<pythonReference>
<para>Choose the statistic to calculate.</para>
<para>The available options when the value raster is integer are All, Mean, Majority, Maximum, Median, Minimum, Minority, Percentile, Range, Standard deviation, Sum, Variety, Minimum and Maximum, Mean and Standard deviation, and Minimum, Maximum and Mean.</para>
<para>If the value raster is float, the options are All, Mean, Maximum, Minimum, Range, Standard deviation, and Sum.</para>
<bulletList>
<bullet_item>ALL— All of the statistics will be calculated. This is the default.</bullet_item>
<bullet_item>MEAN—Calculates the average of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>MAJORITY— Determines the value that occurs most often of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>MAXIMUM— Determines the largest value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>MEDIAN— Determines the median value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>MINIMUM— Determines the smallest value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>MINORITY— Determines the value that occurs least often of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>PERCENTILE—Calculates a percentile of all cells in the value raster that belong to the same zone as the output cell. The 90th percentile is calculated by default. You can specify other values (from 0 to 100) using the Percentile Values parameter.</bullet_item>
<bullet_item>RANGE— Calculates the difference between the largest and smallest value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>STD— Calculates the standard deviation of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>SUM— Calculates the total value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>VARIETY— Calculates the number of unique values for all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>MIN_MAX— Both the minimum and maximum statistics are calculated.</bullet_item>
<bullet_item>MEAN_STD— Both the mean and standard deviation statistics are calculated.</bullet_item>
<bullet_item>MIN_MAX_MEAN— The minimum, maximum and mean statistics are calculated.</bullet_item>
</bulletList>
</pythonReference>
<dialogReference>
<para>Choose the statistic to calculate.</para>
<para>The available options when the value raster is integer are All, Mean, Majority, Maximum, Median, Minimum, Minority, Percentile, Range, Standard deviation, Sum, Variety, Minimum and Maximum, Mean and Standard deviation, and Minimum, Maximum and Mean.</para>
<para>If the value raster is float, the options are All, Mean, Maximum, Minimum, Range, Standard deviation, and Sum.</para>
<bulletList>
<bullet_item>All— All of the statistics will be calculated. This is the default.</bullet_item>
<bullet_item>Mean—Calculates the average of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Majority— Determines the value that occurs most often of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Maximum— Determines the largest value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Median— Determines the median value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Minimum— Determines the smallest value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Minority— Determines the value that occurs least often of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Percentile—Calculates a percentile of all cells in the value raster that belong to the same zone as the output cell. The 90th percentile is calculated by default. You can specify other values (from 0 to 100) using the Percentile Values parameter.</bullet_item>
<bullet_item>Range— Calculates the difference between the largest and smallest value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Standard deviation— Calculates the standard deviation of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Sum— Calculates the total value of all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Variety— Calculates the number of unique values for all cells in the raster layer to be summarized that belong to the same zone as the output cell.</bullet_item>
<bullet_item>Minimum and Maximum— Both the minimum and maximum statistics are calculated.</bullet_item>
<bullet_item>Mean and Standard deviation— Both the mean and standard deviation statistics are calculated.</bullet_item>
<bullet_item>Minimum, Maximum and Mean— The minimum, maximum and mean statistics are calculated.</bullet_item>
</bulletList>
</dialogReference>
<enumcorrespondence>
<enum label="All" name="ALL"/>
<enum label="Mean" name="MEAN"/>
<enum label="Majority" name="MAJORITY"/>
<enum label="Maximum" name="MAXIMUM"/>
<enum label="Median" name="MEDIAN"/>
<enum label="Minimum" name="MINIMUM"/>
<enum label="Minority" name="MINORITY"/>
<enum label="Percentile" name="PERCENTILE"/>
<enum label="Range" name="RANGE"/>
<enum label="Standard deviation" name="STD"/>
<enum label="Sum" name="SUM"/>
<enum label="Variety" name="VARIETY"/>
<enum label="Minimum and Maximum" name="MIN_MAX"/>
<enum label="Mean and Standard deviation" name="MEAN_STD"/>
<enum label="Minimum, Maximum and Mean" name="MIN_MAX_MEAN"/>
</enumcorrespondence>
</param>
<param datatype="Multiple Value" direction="Input" displayname="percentileValues" expression="percentileValues;percentileValues..." name="percentileValues" sync="true" type="Required">
<pythonReference>
<para>The percentile to calculate. The default is 90, for the 90th percentile.</para>
<para>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.</para>
<para>This option is only available if the statisticsType parameter is set to PERCENTILE or ALL.</para>
</pythonReference>
<dialogReference>
<para>The percentile to calculate. The default is 90, for the 90th percentile.</para>
<para>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.</para>
<para>This option is only available if the Statistics Type parameter is set to Percentile or All.</para>
<para>This option is only available if the statisticsType parameter is set to PERCENTILE or ALL.</para>
</dialogReference>
</param>
<param datatype="Boolean" direction="Input" displayname="processAsMultidimensional" expression="{CURRENT_SLICE | ALL_SLICES}" name="processAsMultidimensional" sync="true" type="Optional">
<pythonReference>
<para>Determines how the input rasters will be processed if they are multidimensional.</para>
<bulletList>
<bullet_item>Unchecked—Statistics will be calculated from the current slice of a multidimensional image service. This is the default.</bullet_item>
<bullet_item>Checked—Statistics will be calculated for all dimensions (such as time or depth) of a multidimensional image service.</bullet_item>
</bulletList>
<bulletList>
<bullet_item>CURRENT_SLICE— Statistics will be calculated from the current slice of a multidimensional image service. This is the default.</bullet_item>
<bullet_item>ALL_SLICES— Statistics will be calculated for all dimensions (such as time or depth) of a multidimensional image service.</bullet_item>
</bulletList>
</pythonReference>
<dialogReference>
<para>Determines how the input rasters will be processed if they are multidimensional.</para>
<bulletList>
<bullet_item>Unchecked—Statistics will be calculated from the current slice of a multidimensional image service. This is the default.</bullet_item>
<bullet_item>Checked—Statistics will be calculated for all dimensions (such as time or depth) of a multidimensional image service.</bullet_item>
</bulletList>
<bulletList>
<bullet_item>CURRENT_SLICE— Statistics will be calculated from the current slice of a multidimensional image service. This is the default.</bullet_item>
<bullet_item>ALL_SLICES— Statistics will be calculated for all dimensions (such as time or depth) of a multidimensional image service.</bullet_item>
</bulletList>
</dialogReference>
</param>
<param datatype="String" direction="Input" displayname="percentileInterpolationType" expression="{AUTO_DETECT | NEAREST | LINEAR}" name="percentileInterpolationType" type="Optional"/>
<param datatype="String" direction="Input" displayname="context" expression="{context}" name="context" type="Optional"/>
</parameters>
<returnvalues/>
<environments>
<environment label="Cell size" name="cellSize"/>
<environment label="Output extent" name="extent"/>
<environment label="Mask" name="mask"/>
<environment label="Output coordinate system" name="outputCoordinateSystem"/>
<environment label="Snap raster" name="snapRaster"/>
</environments>
<usage>
<bullet_item>
<para>A zone is defined as all areas in the input that have the same value. The areas do not have to be contiguous. Both image and feature services can be used for the zone input.</para>
</bullet_item>
<bullet_item>
<para>If the Input Zone Raster or Features (inputZoneRasterOrFeatures in Python) is a raster, it must be an integer raster.</para>
<para>If the zone is a feature, it will be converted to a raster internally, using the cell size and cell alignment from the Input Value Raster (inputValueRaster in Python).</para>
</bullet_item>
<bullet_item>
<para>When the Cell size of the Input Zone Raster or Features and the Input Value Raster is different, the output cell size will be the Maximum Of Inputs, and the value raster image service will be used as the Snap Raster internally. If the cell size is same, but the cells are not aligned, the value raster will be used as the snap raster internally. Either of these cases will trigger an internal resampling before the zonal operation is performed.</para>
<para>When the zone and value inputs are both rasters of the same cell size and the cells are aligned, they will be used directly in the tool, and will not be resampled internally during the tool execution.</para>
</bullet_item>
<bullet_item>
<para>If the Input raster or feature zone data is a feature, for any of the zone features that do not overlap any cell centers of the value raster, those zones will not get converted to the internal zone raster. As a result, those zones will not be represented in the output. You can manage this by determining an appropriate value for the Cell Size environment that will preserve the desired level of detail of the feature zones, and specify it in the analysis environment.</para>
</bullet_item>
<bullet_item>
<para>If the Input Zone Raster or Features is a point feature, it is possible to have more than one point contained within any particular cell of the value input raster. For such cells, the zone value is determined by the point with the lowest ObjectID field (for example, OID or FID).</para>
</bullet_item>
<bullet_item>
<para>If the Input Zone Raster or Features has overlapping features, the zonal analysis will be performed for each individual feature.</para>
</bullet_item>
<bullet_item>
<para>When specifying the Input raster or feature zone data the default zone field will be the first available integer or text field. If no other valid fields exist, the ObjectID field (for example, OID or FID) will be the default.</para>
</bullet_item>
<bullet_item>
<para>The Input Value Raster can be either integer or floating point. However, when it is floating-point type, the options for calculating majority, median, minority, percentile and variety will not be available. For majority and minority calculations, when there is a tie, the output for the zone is based on the lowest of the tied values.</para>
</bullet_item>
<bullet_item>
<para> Supported multidimensional dataset types include multidimensional image service.</para>
</bullet_item>
<bullet_item>
<para>A field or series of fields will be created in the output table, depending on the chosen Statistics Type (statisticsType in Python). The number of rows in the output table will represent the number of zones.</para>
</bullet_item>
</usage>
<scriptExamples>
<scriptExample>
<title>ZonalStatisticsAsTable example 1 (Python window)</title>
<para>This example determines for each zone the average of cell values in the raster layer to be summarized.</para>
<code xml:space="preserve">import arcpy
arcpy.ZonalStatisticsasTable_ra('https://MyPortal.esri.com/server/rest/services/Hosted/landuse/ImageServer',
'https://MyPortal.esri.com/server/rest/services/Hosted/elevation/ImageServer',
'outTable', 'Landuse', '', 'MEAN')
</code>
</scriptExample>
<scriptExample>
<title>ZonalStatisticsAsTable example 2 (stand-alone script)</title>
<para>This example determines for each zone the statistics value in the raster layer to be summarized.</para>
<code xml:space="preserve">#-------------------------------------------------------------------------------
# Name: ZonalStatisticsasTable_Ex_02.py
# Description: Calculates all statistics with defined percentile values # for sea-surface temperature defined by ecological zones.
# Requirements: ArcGIS Image Server
# Import system modules
import arcpy
# Set local variables
inputZoneRasterOrFeatures = 'https://MyPortal.esri.com/server/rest/services/Hosted/zones/ImageServer'
inputValueRaster = 'https://MyPortal.esri.com/server/rest/services/Hosted/seaSurfaceTemperature/ImageServer'
outputTableName = 'outZSAT'
zoneField = 'temperature'
ignoreNodata = '' statisticType = 'ALL'
percentileValues = [25,75,90]
processAsMultidimensional = 'ALL_SLICES'
# Execute Multidimensional Zonal Statistics as Table
arcpy.ZonalStatisticsasTable_ra(inputZoneRasterOrFeatures, inputValueRaster, outputTableName, zoneField,
ignoreNodata, statisticType, percentileValues, processAsMultidimensional)
</code>
</scriptExample>
</scriptExamples>
<shortdesc>ArcGIS geoprocessing tool that summarizes the values of a raster within the zones of another dataset and reports the results to a table.</shortdesc>
<arcToolboxHelpPath>withheld</arcToolboxHelpPath>
</tool>
</metadata>
