You are here: Rasters > RasterStatisticsCalculator

RasterStatisticsCalculator

Calculates statistics on raster bands and exposes them as attributes. Bands with palettes are valid.  

Statistics are calculated and output on each raster feature individually. If you want to calculate raster statistics on a group of rasters in aggregate, merge them prior to this transformer with the RasterBandCombiner or RasterMosaicker.

Statistics will be stored as attributes on the feature. Attributes will be named <band>.<statistic> for stats calculated on band cell values, or <band>.<palette>.<statistic> for stats calculated on resolved palette values. <statistic> will be one of the following: min, max, range, mean, stdev, sum, median, mode.

For example, if Band was chosen and median was calculated for the band at index 0, then an attribute named band0.median would be added to the feature. If Band and Palette was chosen, band 1 has one palette, and max was calculated, then attributes named band1.palette{0}.max and band1.max will be added to the feature.

Input Ports

Output Ports

Parameters

Options

Statistics to Calculate

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Calculated Values

Rasters

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.