ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Split Raster

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Divides a raster dataset into smaller pieces, by tiles or features from a polygon.

Usage

  • The output files will share most of the properties of the input source raster, such as the spatial reference, source type, pixel type, pixel depth, and cell size.

  • The tiling method determines which of the optional parameters are used to determine the dimensions and location of the output tiles. In both cases, NoData values are used to pad the tiles where there is no corresponding source data. The data format depends on the limitations of the individual format specifications and the source image data type. Invalid combinations result in an appropriate error message.

  • If a tile already exists (if there is a file with the same name), then it will not be overwritten.

  • If a tile only contains NoData pixel values, then it will not be created.

Syntax

SplitRaster_management (in_raster, out_folder, out_base_name, split_method, format, {resampling_type}, {num_rasters}, {tile_size}, {overlap}, {units}, {cell_size}, {origin}, {split_polygon_feature_class}, {clip_type}, {template_extent}, {nodata_value})
ParameterExplanationData Type
in_raster

The raster to split.

Raster Layer
out_folder

The destination for the new raster datasets.

Folder
out_base_name

The prefix for each of the raster datasets you will create. A number will be appended to each prefix, starting with 0.

String
split_method

Determines how to split the raster dataset.

  • SIZE_OF_TILE —Specify the width and height of the tile.
  • NUMBER_OF_TILES — Specify the number of raster tiles to create by breaking the dataset into a number of columns and rows.
  • POLYGON_FEATURES — Use the individual polygon geometries in a feature class to split the raster.
String
format

The format for the output raster datasets.

  • TIFF —Tagged Image File Format. This is the default.
  • BMP —Microsoft Bitmap.
  • ENVI —ENVI DAT.
  • Esri BIL —Esri Band Interleaved by Line.
  • Esri BIP —Esri Band Interleaved by Pixel.
  • Esri BSQ —Esri Band Sequential.
  • GIF —Graphic Interchange Format.
  • GRID —Esri Grid.
  • IMAGINE IMAGE —ERDAS IMAGINE.
  • JP2 —JPEG 2000.
  • JPEG —Joint Photographic Experts Group.
  • PNG —Portable Network Graphics.
String
resampling_type
(Optional)

Choose an appropriate technique based on the type of data you have.

  • NEAREST —The fastest resampling method, and it minimizes changes to pixel values. Suitable for discrete data, such as land cover.
  • BILINEAR —Calculates the value of each pixel by averaging (weighted for distance) the values of the surrounding 4 pixels. Suitable for continuous data.
  • CUBIC —Calculates the value of each pixel by fitting a smooth curve based on the surrounding 16 pixels. Produces the smoothest image, but can create values outside of the range found in the source data. Suitable for continuous data.
  • MAJORITY —Determines the value of each pixel based on the most popular value within a 3x3 window. Suitable for discrete data.
String
num_rasters
(Optional)

The number of rows (x) and columns (y) to split the raster dataset into. This is a point whose X and Y coordinates define number of rows and columns. The X coordinate is the number of rows and the Y coordinate is the number of columns.

Point
tile_size
(Optional)

The x and y dimensions of the output tiles. The default unit of measurement is in pixels. You can change this with the units parameter. This is a point whose X and Y coordinates define the dimensions of output tiles. The X coordinate is the horizontal dimension of the output and the Y coordinate is the vertical dimension of the output.

Point
overlap
(Optional)

The tiles do not have to line up perfectly; set the amount of overlap between tiles with this parameter. The default unit of measurement is in pixels. You can change this with the units parameter.

Double
units
(Optional)

Set the units of measurement for the tile_size and the overlap parameters.

  • PIXELS —The unit is in pixels. This is the default.
  • METERS —The unit is in meters.
  • FEET —The unit is in feet.
  • DEGREES —The unit is in decimal degrees.
  • MILES —The unit is in miles.
  • KILOMETERS —The unit is in kilometers.
String
cell_size
(Optional)

The spatial resolution of the output raster. If left blank, the output cell size will match the input raster. When you change the cell size values, the tile size is reset to the image size and the tile count is reset to 1.

Point
origin
(Optional)

Change the coordinates for the lower left origin point, where the tiling scheme will begin. If left blank, the lower left origin would be the same as the input raster.

Point
split_polygon_feature_class
(Optional)

A feature class that will be used to split the raster dataset.

Feature Layer
clip_type
(Optional)

Limits the extent of your raster dataset before you split it.

  • NONE — Use the full extent of the input raster dataset.
  • EXTENT —Specify bounding box as your clipping boundary.
  • FEATURE_CLASS —Specify a feature class to clip the extent.
String
template_extent
(Optional)

An extent or a dataset used to define the clipping boundary. The dataset can be a raster or feature class.

Extent
nodata_value
(Optional)

All the pixels with the specified value will be set to NoData in the output raster dataset.

String

Code sample

SplitRaster example 1 (Python window)

This is a Python sample for SplitRaster.

import arcpy
arcpy.SplitRaster_management("c:/source/large.tif", "c:/output/splitras",
                             "ras", "NUMBER_OF_TILES", "TIFF", "NEAREST",
                             "2 2", "#", "10", "PIXELS", "#", "#")
SplitRaster example 2 (stand-alone script)

This is a Python script sample for SplitRaster.

##====================================
##Split Raster
##Usage: SplitRaster_management in_raster out_folder out_base_name SIZE_OF_TILE
##                              | NUMBER_OF_TILES | TIFF | BMP | ENVI | ESRI BIL |
##                              ESRI BIP | ESRI BSQ | GIF | GRID | IMAGINE IMAGE | 
##                              JP2 | JPG | PNG {NEAREST | BILINEAR | CUBIC | 
##                              MAJORITY} {num_rasters} {tile_size} {overlap} 
##                              {PIXELS | METERS | FEET | DEGREES | KILOMETERS | 
##                              MILES} {cell_size} {origin}
    
import arcpy
arcpy.env.workspace = r"\\myServer\PrjWorkspace\RasGP"

##Equally split a large TIFF image by number of images
arcpy.SplitRaster_management("large.tif", "splitras", "number", "NUMBER_OF_TILES",\
                             "TIFF", "NEAREST", "2 2", "#", "4", "PIXELS",\
                             "#", "#")

##Equally split a large TIFF image by size of images
arcpy.SplitRaster_management("large.tif", "splitras", "size2", "SIZE_OF_TILE",\
                             "TIFF", "BILINEAR", "#", "3500 3500", "4", "PIXELS",\
                             "#", "-50 60")

Environments

  • Compression
  • Current Workspace
  • NoData
  • Output CONFIG Keyword
  • Output Coordinate System
  • Extent
  • Pyramid
  • Raster Statistics
  • Tile Size
  • Parallel Processing Factor

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data
  • Supported raster dataset file formats
  • Raster To DTED

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal