ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

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
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Generate Raster From Raster Function

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

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})
ParameterExplanationData 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

Related topics

  • An overview of the Raster toolset
  • Environment settings for raster data

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • 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