Since the internal raster must have an attribute table, an error will occur if one was not created in the conversion. To ensure that the results of the conversion will align properly with the value raster, it is recommended that you check to ensure the extent and snap raster are set appropriately in the environment settings and the raster settings. If the zone input is a feature dataset, a vector-to-raster conversion will be internally applied to it. You can use Build Raster Attribute Table to create one. The attribute table is usually created automatically for integer rasters, but may not be under certain circumstances. If the zone input is a raster dataset, it must have an attribute table. To avoid this situation, either Resample the coarser input rasters to the resolution of the finer input raster, or set the Cell size to Minimum Of Inputs in the Raster Analysis environment. Should there be any NoData cells in the inputs, the resampling may cause there to be larger areas of NoData in your output than you might have expected. If the resolutions are different, an internal resampling is applied to make them match before the zonal operation is performed. When the zone and value inputs are both rasters of the same resolution, they will be used directly. Both raster and feature datasets can be used for the zone input.
Learn more about how Zonal Statistics works Illustration OutRas = ZonalStatistics(ZoneRas, "VALUE", ValRas, "MINIMUM") UsageĪ zone is defined as all areas in the input that have the same value.
Calculates statistics on values of a raster within the zones of another dataset.