Using Less Than & Greater Than in Raster Calculator

4501
1
11-01-2011 02:39 PM
FlemingTalton
New Contributor
Hello all,

I simply want to find the cells in a raster with aspect values between 225 - 315. I am using raster calculator with the following expression, for which I get an error that says "The truth value of a raster is ambiguous"

"Aspect_raste1" >= 225 & "Aspect_raste1" <= 315

What am I doing wrong?

thanks
0 Kudos
1 Reply
CatherineMacGregor
New Contributor
Hi

I read a similar post the other day - apparently what you have to do is write the expression this way:

("Aspect_raste1" >= 225) & ("Aspect_raste1" <= 315)

Hope this helps.
0 Kudos