ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

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

Usage

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

Syntax

arcpy.management.GenerateRasterFromRasterFunction(raster_function, out_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
out_raster_dataset

The output raster dataset.

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.

Value Table
format
(Optional)

The output raster format.

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

  • TIFF —Tagged Image File Format for raster datasets
  • IMAGINE Image —ERDAS IMAGINE raster data format
  • Esri Grid —Esri Grid raster dataset format
  • CRF —Cloud Raster Format
  • MRF —Meta Raster Format
String

Code sample

GenerateRasterFromRasterFunction example (stand-alone script)

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

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

  • Cell Size
  • Compression
  • Current Workspace
  • Extent
  • Geographic Transformations
  • NoData
  • Output Coordinate System
  • Parallel Processing Factor
  • Pyramid
  • Raster Statistics
  • Resampling Method
  • Scratch Workspace
  • Snap Raster
  • Tile Size

Licensing information

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

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal