I'm updating a landform classification script that ran under 10.3 to ArcGIS Pro 2.2. The model used a number of Single Output Map Algebra (SOMA) functions that I managed to replace with the raster calculators. That all seems to work, apart from this one formula:
medtpi1 == 1 and medtpi2 == 1 and rclsslope == 0
"%medtpi1%" == 1 and "%medtpi2%" == 1 and "%rclsslope%" == 0
I'm getting the error below and I must admit I'm not quite sure what to do with it. All other formulas have just two statements, so I thought the error might be related to the fact that there are three but this is a bit beyond my experience to date.
ERROR 000539: Traceback (most recent call last):
File "<expression>", line 1, in <module>
File "<string>", line 5, in rcexec
ValueError: The truth value of a raster is ambiguous. Invalid use of raster with Boolean operator or function. Check the use of parentheses where applicable.
Failed to execute (Raster Calculator (14))
Any help would be much appreciated.