Cell Size (Environment setting)

Tools that honor the Cell size environment setting set the output raster cell size, or resolution, for the operation. The default output resolution is determined by the coarsest of the input raster datasets.

Usage notes

Dialog syntax

Scripting syntax

arcpy.env.cellSize = cellsize_option

cellsize_option

Explanation

MAXOF

Maximum of inputs—Largest cell size of all input datasets. This is the default.

MINOF

Minimum of inputs—Smallest cell size of all input datasets.

number

Use the specified cell size value directly.

layer_name

Use the cell size of the specified layer or raster dataset.

cellSize syntax
import arcpy

# Set the cell size environment using a keyword.
arcpy.env.cellSize = "MINOF"

# Set the cell size environment using a number.
arcpy.env.cellSize = 20

# Set the cell size environment using a raster dataset.
arcpy.env.cellSize = "C:/sapyexamples/data/myraster"

Related Topics


3/13/2012