npssde

FocalSum with Boolean Syntax in Raster Calculator vs. Map Algebra

Discussion created by npssde on Nov 9, 2010
Hello (apologies for cross-postings),

I'm trying to replicate a FocalSum process that works fine in Raster Calculator (9.3.1) but breaks when used in SingleOutputMapAlgebra_sa in Python.

Here's what works in Raster Calculator: focalsum(Not(IsNull([IndicatorRaster])),RECTANGLE,7,7)


In MapAlgebra, I get a 'Not is not a valid operator' error.  I've tried using '^' in place of 'Not' but that gives the same error.  I've played with spaces around the functions and inputs, which didn't help either.

I'm stumped now... Any insights appreciated! 

Lisa

Outcomes