I have two rasters containing bathymetry data: one containing the bathymetry of the sea floor, we'll call this raster1, and another containing the difference between two previous scans of the same area, but only where the difference is negative. We'll call this raster2. I have to query raster2 such that any areas where the value is >10% of raster1's value will be highlighted.
I can do this in Raster Calculator in ArcGIS with this expression:
abs("raster2") > 0.1 * "raster1"
However I'm trying to write a script to do this and as we know, you can not use Raster Calculator in Python. So I tried this code:
outAbs = Abs(raster2)
outTimes = Times(raster1, 0.1)
arcpy.CheckOutExtension("Spatial")
outFinal = outAbs > outTimes
But I get:
RuntimeError: ERROR 010422: Error in processing the environment mask.
To be clear, raster1 and raster 2 are both in GRID format.
Any ideas why I might be getting this error?