Skip to main content

Weighted Sum (Spatial Analyst Tools)

Summary

Overlays several rasters, multiplying each by their given weight and summing them together.

Learn more about how Weighted Sum works

Illustration

Weighted Sum illustration

In the illustration, the cell values are multiplied by their weight factor, and the results are added together to create the output raster. For example, consider the upper left cell. The values for the two inputs become (2.2 * 0.75) = 1.65 and (3 * 0.25) = 0.75. The sum of 1.65 and 0.75 is 2.4.

Usage

  • A useful way to add several rasters together is to input multiple rasters and set all weights equal to 1.

  • Input rasters can be integer or floating point.

  • The weight values can be any positive or negative decimal value. It is not restricted to a relative percentage nor does it need to be equal to 1.0.

  • The weight will be applied to the specified field for the input raster. Fields can be of type short or long integer, double or float.

  • By default, this tool will use multicore processors if available. The maximum number of cores that can be used is four.

    To use fewer cores, use the Parallel Processing Factor environment setting.

  • See Analysis environments and Spatial Analyst for additional details on the geoprocessing environments that apply to this tool.

Parameters

Label Explanation Data type

Input rasters

The weighted sum table allows you to apply different weights to individual input rasters before they are summed together.

  • Raster—The raster being weighted.

  • Field—The field of the raster to use for weighting.

  • Weight—The weight value by which to multiply the raster. It can be any positive or negative decimal value.

WSTable

Return value

Label Explanation Data type

Output raster

The output weighted raster.

It will be of floating-point type.

Raster

Environments

Auto Commit, Cell Size, Cell Size Projection Method, Current Workspace, Extent, Geographic Transformations, Mask, Output CONFIG Keyword, Output Coordinate System, Parallel Processing Factor, Scratch Workspace, Snap Raster, Tile Size

Licensing information

  • Basic: Requires Spatial Analyst or Image Analyst
  • Standard: Requires Spatial Analyst or Image Analyst
  • Advanced: Requires Spatial Analyst or Image Analyst