I have a lengthy raster calculator expression I'm running in a python script tool that keep throwing the following error:
RuntimeError: Failed to apply Raster Function: 'RasterCalculator' (The parameter is incorrect.
Bind failed in function 'Raster Calculator Function' [Raster Calculator Function].)
I narrowed it down to the Power() function. The calculation in the script works fine if I remove it
I simplified everything down to troubleshoot:
If I run the expression Power("x", 2) in the raster calculator everything works as advertised
If I run the script y = RasterCalculator([x], ["x"], "Power(x, 2)") I get the above error. (If I change Power() to another function like Sin(x) the script will run without error)
Is this a bug or am I just missing something simple?