Tools that honor the Cell Size environment 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, unless determined by the tool.
Usage notes
- To use a specific numeric cell size, type the value directly in the box.
- The default cell size when a feature dataset is used as the only input to a tool is 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, it will not be projected if the output is in a spatial reference other than that of the input data. In other cases, the input dataset will be projected and the new cell size will be used.
- Use 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.
- When datasets are projected during analysis, the output raster cell size will use the method specified in the Cell Size Projection Method environment setting if the tool honors this environment.
Dialog syntax
- Empty—A geoprocessing tool interprets no value as the tool's preferred behavior. This is the default.
- Maximum of Inputs—Use the largest cell size of all input datasets.
- Minimum of Inputs—Use the smallest cell size of all input datasets.
- Same as Layer <name>—Use the cell size of the specified layer or raster dataset.
Scripting syntax
arcpy.env.cellSize = cellsize_option
cellsize_option | Explanation |
---|---|
MAXOF | The largest cell size of all the input datasets will be used. This is the default, unless determined by the tool. |
MINOF | The smallest cell size of all input datasets will be used. |
number | Use the specified cell size value directly. |
layer name | Use the cell size of the specified layer or raster dataset. |
Script example
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"