jgrand

Problem running MOMA in ArcMap 10

Discussion created by jgrand on Jul 28, 2011
Latest reply on Aug 8, 2011 by jgrand
I have a line of Python code that uses the MOMA tool and it executes fine in 9.3 but when I try to run it in 10 I get the following error:

ExecuteError: ERROR 010067: Error in executing grid expression.
Failed to execute (MultiOutputMapAlgebra)

Here is the code:

inExpression = outRaster + " = Con((" + inRaster1 + ") > 20 & (" + inRaster1 + ") < 25," + inRaster1 + "," + inRaster2 + ")"
gp.MultiOutputMapAlgebra(inExpression)

The ArcMap 10 documentation says: "The Single Output Map Algebra (SOMA) and Multiple Output Map Algebra (MOMA) tools are not available in the Spatial Analyst toolbox. However, existing SOMA and MOMA tools in geoprocessing models and scripts are still supported and will continue to work"

This doesn't seem to be the case.  Can anyone help?

Outcomes