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.
- The environment will only affect rasters that are stored in TIFFs, CRFs, or geodatabases.
- When rasters are stored as blocks of data, they store raster datasets in a data type known as a binary large object (BLOB). The tile size option allows you to control the number of pixels that are stored in each BLOB, which controls 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.
- The minimum tile size for a .crf file is 256 by 256 pixels.
- 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.
arcpy.env.tileSize = "width height"
The width of the desired tile size. The default value is 128.
The height of the desired tile size. The default value is 128.
import arcpy #Set the tileSize environment to 128 by 128 arcpy.env.tileSize = "128 128"