Skip To Content

Cell Statistics function

Available with Image Analyst license.

Available with Spatial Analyst license.

Overview

This function calculates statistics from multiple rasters, on a pixel-by-pixel basis. The available statistics are majority, maximum, mean, median, minimum, minority, range, standard deviation, sum, and variety.

Notes

The order of the input rasters is irrelevant for this raster function.

If a single raster is used as the input for maximum, minimum, mean, median, majority, minority, or sum, the output pixel values will be the same as the input pixel values. If a single raster is used for range or standard deviation, the output cell values will all be 0. If a single raster is used for variety, the output pixel values will all be 1.

For each Operation, you can also choose to calculate the statistics by excluding all the NoData pixels.

Parameters

Parameter nameDescription

Rasters

The list of rasters from which to calculate statistics, on a pixel-by-pixel basis.

Operation

The type of statistical calculation that you want to perform.

The available statistics are Majority, Maximum, Mean, Median, Minimum, Minority, Range, Standard Deviation, Sum, and Variety.

Extent Type

Choose which extent should be used in the output raster:

  • First Of—Use the extent of the first input raster to determine the processing extent.

  • Intersection Of—Use the extent of the overlapping pixels to determine the processing extent. This is the default.
  • Union Of—Use the extent of all the rasters to determine the processing extent.
  • Last Of—Use the extent of the last input raster to determine the processing extent.

Cellsize Type

Choose which cell size to use in the output raster. If all the input cell sizes are the same, all the options will yield the same results.

  • First Of—Use the first cell size of the input rasters.
  • Min Of—Use the smallest cell size of all the input rasters.
  • Max Of—Use the largest cell size of all the input rasters. This is the default.
  • Mean Of—Use the mean cell size of all the input rasters.
  • Last Of—Use the last cell size of the input rasters.

Learn more about the operations

Here is a list of all of the operations and a description for each of them. For more information about each of the operations, see How Cell Statistics works.

Parameter nameDescription

Majority

Determines the value that occurs most often on a pixel-by-pixel basis.

Maximum

Determines the largest value on a pixel-by-pixel basis.

Mean

Calculates the average on a pixel-by-pixel basis.

Median

Calculates the middle value of the pixels on a pixel-by-pixel basis.

Minimum

Determines the smallest value on a pixel-by-pixel basis.

Minority

Determines the value that occurs least often on a pixel-by-pixel basis.

Range

Calculates the difference between the largest and the smallest value on a pixel-by-pixel basis.

Standard Deviation

Calculates the standard deviation of the pixels on a pixel-by-pixel basis.

Sum

Calculates the total value on a pixel-by-pixel basis.

Variety

Calculates the number of unique values on a pixel-by-pixel basis.

Majority (Ignore NoData)

Determines the value that occurs most often on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Maximum (Ignore NoData)

Determines the largest value on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Mean (Ignore NoData)

Calculates the average on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Median (Ignore NoData)

Calculates the middle value of the pixels on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Minimum (Ignore NoData)

Determines the smallest value on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Minority (Ignore NoData)

Determines the value that occurs least often on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Range (Ignore NoData)

Calculates the difference between the largest and the smallest value on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Standard Deviation (Ignore NoData)

Calculates the standard deviation of the pixels on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Sum (Ignore NoData)

Calculates the total value on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Variety (Ignore NoData)

Calculates the number of unique values on a pixel-by-pixel basis.

Only cells that have data values will be used in determining the statistic value. If a NoData value exists at a certain location, the NoData value will be ignored.

Related topics