Raster To Other Format (Conversion)

Summary

Converts one or more raster datasets to a different format.

Usage

  • If any of the input rasters cannot be converted to the specified output format as a result of the limitations for that format—for example, supported pixel types or number of bands—an error will be returned. The tool will then proceed to the next input raster in the list.

  • If a name and format already exist in the output workspace, a number will be appended to the end to make the feature class unique (for example, landuse_1.tif).

Parameters

LabelExplanationData Type
Input Rasters

The raster datasets to convert.

Raster Dataset; Raster Layer
Output Workspace

The folder where the raster dataset will be written.

Workspace
Raster Format
(Optional)

Specifies the format that will be used for the output raster dataset.

  • BIL—The output will be Esri BIL format.
  • BIP—The output will be Esri BIP format.
  • BMP—The output will be Microsoft BMP format.
  • BSQ—The output will be Esri BSQ format.
  • CRF—The output will be CRF format.
  • ENVI DAT file—The output will be ENVI DAT format.
  • GIF—The output will be GIF format.
  • Esri Grid—The output will be Esri Grid format.
  • ERDAS IMAGINE file—The output will be ERDAS IMAGINE format.
  • JPEG 2000—The output will be JPEG 2000 format.
  • JPEG—The output will be JPEG format.
  • MRF—The output will be MRF format.
  • PNG—The output will be PNG format.
  • TIFF—The output will be TIFF format.
String

Derived Output

LabelExplanationData Type
Updated Output Workspace

The workspace containing the new rasters.

Workspace

arcpy.conversion.RasterToOtherFormat(Input_Rasters, Output_Workspace, {Raster_Format})
NameExplanationData Type
Input_Rasters
[Input_Rasters,...]

The raster datasets to convert.

Raster Dataset; Raster Layer
Output_Workspace

The folder where the raster dataset will be written.

Workspace
Raster_Format
(Optional)

Specifies the format that will be used for the output raster dataset.

  • BIL—The output will be Esri BIL format.
  • BIP—The output will be Esri BIP format.
  • BMP—The output will be Microsoft BMP format.
  • BSQ—The output will be Esri BSQ format.
  • CRF—The output will be CRF format.
  • ENVI DAT—The output will be ENVI DAT format.
  • GIF—The output will be GIF format.
  • GRID—The output will be Esri Grid format.
  • IMAGINE Image—The output will be ERDAS IMAGINE format.
  • JP2000—The output will be JPEG 2000 format.
  • JPEG—The output will be JPEG format.
  • MRF—The output will be MRF format.
  • PNG—The output will be PNG format.
  • TIFF—The output will be TIFF format.
String

Derived Output

NameExplanationData Type
Derived_Workspace

The workspace containing the new rasters.

Workspace

Code sample

RasterToOtherFormat example 1 (Python window)

This sample converts several input rasters of different formats and outputs them as rasters of the same format.

import arcpy
from arcpy import env
env.workspace = "c:/data"
arcpy.conversion.RasterToOtherFormat("test.tif;test2.tif;test3.tif", 
                                     "OtherFormat","BIL")
RasterToOtherFormat example 2 (stand-alone script)

This sample converts several input rasters of different formats and outputs them as rasters of the same format.

##=========================
##Usage: RasterToGeodatabase_conversion Input_Rasters;Input_Rasters... 
##            Output_Geodatabase {Configuration_Keyword}

import arcpy
arcpy.env.workspace = "c:/data"

##Convert Multiple Raster Datasets to FGDB
arcpy.conversion.RasterToOtherFormat("test1;test2.tif;test3.img", 
                                     "OtherFormat.gdb","")

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics