Tile Size (Environment setting)
Tools that honor the Tile Size environment set the tile size for rasters that are stored in blocks of data.
Refer to the Raster Storage Matrix to see which raster storage formats can be controlled when using this and other settings.
- The environment will only affect rasters that are stored in TIFFs, file geodatabases, or an SDE 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 lets you control the number of pixels that are stored in each BLOB and, therefore, lets you 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.
- 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"