I am using a land value grid and am trying to use a con statement to set certain land values equal to 1 and all else equal to 0. This is my syntax: con (Raster1 >=135000 & Raster1 <=175000, 1, 0)

I have tried so many different ways to write this, double (, spaces, etc. And I continue to get the error message 000539; the truth value of a raster is ambiguous. What am I doing wrong?

Any help is appreciated.

I am running ArcGIS 10, ArcView with Spatial Analyst

I have tried so many different ways to write this, double (, spaces, etc. And I continue to get the error message 000539; the truth value of a raster is ambiguous. What am I doing wrong?

Any help is appreciated.

I am running ArcGIS 10, ArcView with Spatial Analyst

con (Raster1 >=135000 & Raster1 <=175000, 1, 0)

might be

con( ("Raster1" >= 135000) & ("Raster1" <= 175000), 1, 0)

if memory serves, grid names are enclosed in " " in version 10 and [ ] in 9.x, also put ( ) around statements that use boolean operations. and check the forum, this has been documented previously

http://forums.arcgis.com/threads/13219-Con-statement-error-in-raster-calculator?p=40419&posted=1#post40419