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).

Syntax

RasterToOtherFormat(Input_Rasters, Output_Workspace, {Raster_Format})
ParameterExplanationData Type
Input_Rasters
[in_raster,...]

The raster datasets to convert.

Raster Dataset
Output_Workspace

The folder where the raster dataset will be written.

Workspace
Raster_Format
(Optional)

The format of the new raster dataset.

  • BILEsri Band Interleaved by Line file
  • BIPEsri Band Interleaved by Pixel file
  • BMPMicrosoft bitmap graphic raster dataset format
  • BSQEsri Band Sequential file
  • CRFCloud Raster Format
  • ENVI DATENVI DAT file
  • GIFGraphic Interchange Format for raster datasets
  • GRIDEsri Grid raster dataset format
  • IMAGINE ImageERDAS IMAGINE raster data format
  • JP2000JPEG 2000 raster dataset format
  • JPEGJoint Photographic Experts Group raster dataset format
  • MRFMeta Raster Format
  • PNGPortable Network Graphic raster dataset format
  • TIFFTagged Image File Format for raster datasets
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.RasterToOtherFormat_conversion("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.RasterToOtherFormat_conversion("test1;test2.tif;test3.img", 
                                     "OtherFormat.gdb","")

Licensing information

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

Related topics