Calculating statistics using geoprocessing tools
There are several geoprocessing tools that allow you to calculate statistics for raster datasets. You can even chain them together with other tools in models or create a Python script.
- Use Calculate Statistics if you have a single raster dataset.
- Use Batch Calculate Statistics, if you have multiple raster datasets, to calculate statistics for more than one raster at a time.
- Use Build Pyramids And Statistics if you have a folder or collection of folders, a raster catalog containing raster datasets, or a mosaic dataset for which you need to calculate statistics.
Calculating statistics for mosaic datasets is slightly different than for raster catalogs. There are two different statistical calculations made in mosaic datasets. As with raster catalogs, you can use the Build Pyramids And Statistics tool to calculate the statistics for each source raster dataset. The difference is mosaic datasets have overviews and display as a mosaicked image, whereas raster catalogs do not. You can use the Calculate Statistics tool to calculate the statistics for the mosaicked image. When you calculate statistics for a mosaic dataset, the base pixels are examined; that is, the source raster datasets with the lowest pixel sizes are examined and the statistics are generated across the entire mosaic. Because this can entail a very large image, it is recommended you use a skip factor, such as 100.