AnsweredAssumed Answered

ArcMap crashing on simple raster calculation in Python window

Question asked by alext8808 on Dec 8, 2017
Latest reply on Dec 8, 2017 by alext8808

I have a Python script that has been crashing ever since I had to update to Windows 10 but always worked prior. Not sure if that is the reason or just a coincidence. I have isolated the problem to the part where I try some basic map algebra on rasters. The code below is what I have been trying in the Python window and ArcMap crashes every time with no error. It seems to be related to accessing the individual band because the code works on the main raster. Also, if I add the Band into ArcMap manually and run the code using the layer it also works. I have tried various ways of representing the path to Band 4 but no luck.


from import *
Rast = r'C:\Projects\m_3409443_ne_15_1_20150808.tif'
Band4 = Rast + r'\Band_4'
calc = Raster(Band4) < 60