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

Migrating 9.x scripts and models that use Map Algebra

Available with Spatial Analyst license.

If you have existing Python scripts or ModelBuilder models that use Single Output Map Algebra (SOMA) or Multiple Output Map Algebra (MOMA) tools, these statements will continue to work and do not need to be converted to ArcGIS 10 Map Algebra syntax.

If you wish to migrate existing scripts to take advantage of ArcGIS 10 Map Algebra, you can either re-create them or modify your existing expressions, keeping the following points in mind:

  • Import the ArcPy site package, the Spatial Analyst module, and geoprocessing environment.
    import arcpy
    from arcpy.sa import *
    from arcpy import env
    
    Learn more about importing the Spatial Analyst module
  • If necessary, change the syntax to be algebraic:

    out = function(parameters)

  • Call the save method on the resulting raster object if you want to permanently save the referenced raster dataset associated with the raster object.

    Learn more about working with Raster objects

Related topics

  • What is Map Algebra?
  • Comparing Map Algebra between versions 9.x and 10
  • Support for 9.x Map Algebra statements using SOMA and MOMA

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