Tile Size (Environment setting)

Tools that honor the Tile Size environment set the tile size for rasters that are stored in blocks of data.

See the Raster Storage Matrix to find out which raster storage formats can be controlled when using this and other settings.

Usage notes

  • The environment will only affect rasters that are stored in TIFFs, file geodatabases, or an enterprise geodatabase.
  • When rasters are stored as blocks of data, they store raster datasets in a data type known as a binary large object, or BLOB. The tile size option allows you to control the number of pixels that are stored in each BLOB and, therefore, allows you to control the size of each BLOB. It is specified as the number of pixels in X (tile width) and Y (tile height).
  • The default tile size is 128 by 128 pixels.

Dialog syntax

  • Width—Type an integer value for the number of pixels in the x direction of the pixel block. The default is 128.
  • Height—Type an integer value for the number of pixels in the y direction of the pixel block. The default is 128.

Scripting syntax

arcpy.env.tileSize = "width height"

ParameterExplanation

width

The width of the desired tile size. The default value is 128.

height

The height of the desired tile size. The default value is 128.

tileSize syntax

Script example

import arcpy

#Set the tileSize environment to 128 by 128
arcpy.env.tileSize = "128 128"

Related topics