Generate Raster From Raster Function (Data Management)


Generates a raster dataset from an input raster function or function chain.


  • The tool is designed for raster processing using multiple threads to help speed up the processing.

  • The output raster format can be TIFF, GRID, ERDAS IMAGINE, CRF (Cloud Raster Format), or MRF (Meta Raster Format).


GenerateRasterFromRasterFunction(raster_function, out_raster_dataset, {raster_function_arguments}, {raster_properties}, {format}, {process_as_multidimensional})
ParameterExplanationData Type

The name of a raster function, raster function JSON object, or function chain (in .rft.xml format).

File; String

The output raster dataset.

Raster Dataset
[[Name, Value],...]

The parameters associated with the function chain. For example, if the function chain applies the Hillshade raster function, set the data source, azimuth, and altitude.

Value Table
[[Name, Value],...]

The output raster dataset key properties, such as the sensor or wavelength.

Value Table

The output raster format.

The default format will be derived from the file extension that was specified in the output_raster_dataset.

  • TIFFTagged Image File Format for raster datasets
  • Cloud Optimized GeoTIFFCloud Optimized GeoTIFF
  • IMAGINE ImageERDAS IMAGINE raster data format
  • Esri GridEsri Grid raster dataset format
  • CRFCloud Raster Format
  • MRFMeta Raster Format

Specifies whether to process the input mosaic dataset as a multidimensional raster dataset.

  • CURRENT_SLICEThe input will not be processed as a multidimensional raster dataset. If the input is multidimensional, only the slice that is currently displayed will be processed. This is the default.
  • ALL_SLICESThe input will be processed as a multidimensional raster dataset and all slices will be processed to produce a new multidimensional raster dataset. Set the format to CRF to use this option.

Code sample

GenerateRasterFromRasterFunction example (Python window)

This is a Python sample that uses the NDVI raster function to create a raster dataset.

import arcpy
arcpy.env.workspace = r"C:\PrjWorkspace"

	raster_function_arguments="Raster \\\\somemachine\\data\\test.tif; VisibleBandID 3;InfraredBandID 4", 
GenerateRasterFromRasterFunction example (stand-alone script)

This is a Python sample that uses the Band Arithmetic raster function with the SAVI method to create a raster dataset.

## Generate raster from Band Arithmetic raster function where method is set to SAVI.
	r"C:\Projects\SAVI.rft.xml", r"C:\Projects\Portland_SAVI.tif", 
	r"Raster C:\Projects\PortlandIKONOS.tif;Method SAVI;'Band Indexes' '4 3 0.33'", 

Licensing information

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