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

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