ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Cell Size (Environment setting)

  • Usage notes
  • Dialog syntax
  • Scripting syntax

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

  • The default output resolution is determined by the coarsest of the input raster datasets.
  • The default cell size when a feature dataset is used as input to a tool is to take the width or height (whichever is shorter) of the extent of the feature dataset, divided by 250.
  • If a numeric cell size value is specified, then it will not be projected if the output is in a spatial reference which is different from that of the input data. In the other cases the input dataset will be projected and the new cell size will be used.
  • Exercise caution when specifying a cell size finer than the input raster datasets. No new data is created; cells are interpolated using nearest neighbor resampling. The result is only as precise as the coarsest input.

Dialog syntax

  • Maximum of Inputs—Use the largest cell size of all input datasets. This is the default.
  • Minimum of Inputs—Use the smallest cell size of all input datasets.
  • As Specified Below—Specify a numeric value in the field below.
  • Same as Layer <name>—Use the cell size of the specified layer or raster dataset.

Scripting syntax

arcpy.env.cellSize = cellsize_option

cellsize_optionExplanation

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

  • An overview of geoprocessing environments
  • Environment levels and hierarchy
  • Setting geoprocessing environments
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal