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.
- To use a specific numeric cell size, type the value in the box directly.
- 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.
- 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.
- Same as Layer <name>—Use the cell size of the specified layer or raster dataset.
arcpy.env.cellSize = cellsize_option
Maximum of inputs—Largest cell size of all input datasets. This is the default.
Minimum of inputs—Smallest cell size of all input datasets.
Use the specified cell size value directly.
Use the cell size of the specified layer or raster dataset.
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"