ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

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

ArcGIS Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Using tool parameters

Available with Spatial Analyst license.

  • Tool parameter rules

Tool parameters define how a tool will process input data. Tool parameters are composed of keywords, user-defined parameters, and classes.

Tool parameter rules

  • A keyword parameter such as output_measurement has specific preset keywords (DEGREE, PERCENT_RISE), which are enclosed in quotes. Keywords are not case sensitive, but it is recommended that you capitalize them for readability.
    # Usage: Slope(in_raster, {output_measurement}, {z_factor})
    
    # DEGREE will be used as the default output measurement in the 
    #  following statement
    outRas = Slope("elevation", "DEGREE")
    

User-defined parameters are inputs that generally quantify a parameter.

  • User-defined parameters are generally numbers and are not quoted.
    # In the following statement 4 is the zfactor parameter
    outRas = Slope("inraster", "DEGREE", 4)
    

Some input parameters are classes. Classes are used when geoprocessing tool parameters would otherwise be a more complicated string equivalent.

  • The specific arguments for the class are enclosed in parentheses. String input is quoted, and numbers are not; parameters are comma delimited.
    outRas = FocalStatistics("inraster", NbrAnnulus(1, 3, "MAP"))
    

    For additional information, see An overview of ArcGIS Spatial Analyst extension classes.

  • To specify a default value for an optional parameter, you must use empty quotes.
    # In the following statement the slope calculations will 
    #  default to DEGREE; 4 is the z value
    factoroutRas = Slope("inraster", "", 4)
    
Note:

For readability, it is recommended that you set the class object to a meaningfully named variable and use the variable in the Map Algebra tool.

myRemapVal = RemapValue([[-3,9],[0,1],[3,-4],[4,5],[5,6],[6,4],[7,-7]])
outReclassRV = Reclassify(inRaster, "VALUE", myRemapVal, "")

Related Topics

  • An overview of the rules for Map Algebra
  • Using classes in Python
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal