Skip To Content

Divide function

Available with Image Analyst license.

Available with Spatial Analyst license.

Overview

Divides the values of two rasters on a pixel-by-pixel basis.

Divide illustration
OutRas = InRas1 / InRas2

Notes

The order of the inputs are important since the first input is divided by the second input.

When a number is divided by zero, the output result is NoData.

If both inputs are integers, an integer division is performed, and the output result is an integer. If either input is floating point, a floating-point division is performed, and the output result is a floating-point value.

Parameters

Parameter nameDescription

Raster

The input whose value will be divided by the second input.

A number can be used as an input for this parameter, provided a raster is specified for Raster2.

Raster2

The input whose value the first input will be divided by.

A number can be used as an input for this parameter, provided a raster is specified for Raster.

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.

Related topics


In this topic
  1. Overview
  2. Notes
  3. Parameters