tfagin

Boolean Operator OR

Discussion created by tfagin on May 10, 2012
Latest reply on May 10, 2012 by tfagin
To explain my issue, I will present a hypothetical situation.

Let's say I have a grid called LAND and another called SOIL, each of which have multiple classes.  In my site selection process, I just want LAND values 10, 20, and 30 and SOIL values 2 and 4.

In earlier versions of the raster calculator, I could write something such as:

outgrid = [LAND] IN {10,20,30} & [SOILS] IN {2,4}

In 10.0, though, it appears that IN is no longer available and I must write something such as:

(("LAND"==10)|("LAND"==20)|("LAND"==30))&(("SOILS"==2)|("SOILS"==4))

This is obviously far less eloquent and a big PIMA, especially when the statements become more complex.

Is there an IN equivalent in ArcGIS 10 Raster Calculator?  Everything I try seems to fail.

Outcomes