Summary
Generates a raster dataset from an input raster function or function chain. The output raster format can be TIFF, GRID, IMAGINE, CRF (Cloud Raster Format), or MRF (Meta Raster Format).
Usage
The tool is designed for raster processing and analysis in the cloud. Use raster functions (in-memory processing) to write the results generated to disk.
Syntax
GenerateRasterFromRasterFunction_management (raster_function, output_raster_dataset, {raster_function_arguments}, {raster_properties}, {format})
Parameter | Explanation | Data Type |
raster_function | The name of a raster function, raster function JSON object, or function chain (in .rft.xml format). | File; String |
output_raster_dataset | The output raster dataset. This dataset can be written to a local directory or saved in cloud storage as a URL. | Raster dataset |
raster_function_arguments [[Name, Value],...] (Optional) | 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 |
raster_properties [[Name, Value],...] (Optional) | The output raster dataset key properties, such as the sensor or wavelength. | String |
format (Optional) | The output format. The default is CRF if the output_raster_dataset parameter is set to a URL. If you select a different output format, it will honor that extension. | String |
Code sample
import arcpy
arcpy.env.workspace = r"C:\PrjWorkspace"
arcpy.GenerateRasterFromRasterFunction_management(
raster_function="NDVI",
out_raster_dataset="c:/temp/ndvitest.crf",
raster_function_arguments="Raster \\\\somemachine\\data\\test.tif; VisibleBandID 3;InfraredBandID 4",
format="CRF")
Environments
This tool does not use any geoprocessing environments