pharrel_admin

running Con in Raster Calculator with 2 or more rasters in 'true' statement

Discussion created by pharrel_admin on Nov 10, 2010
Latest reply on Nov 10, 2010 by Dan_Patterson
I wish to run a con statement where the 'true' statement refers to two or more different raster data sets.  This was common enough in the SOMA tool, but have not been able to get the Raster Calculator to work.  For example:

In raster calculator
Con(raster1 == 1 & raster2 > 0, raster3)

Output should have values of raster3 where true, and NODATA where false.

This fails with an error 'true statement is ambiguous'.  I have also tried nesting the true statement in additional ().  Same error.  Pretty sure this worked in the SOMA tool of ArcGIS 9.3.

Outcomes