I have a script that looks in a folder for all the rasters it contains, performs simple operations on those rasters, and saves them as new rasters in a new folder. The script works fine in ArcGIS 10.2 with python version 2.7.3, but gives the following error in ArcGIS 10.3 with python 2.7.8. The script is embedded in a tool, i.e. not standalone in python.
I've attached example input files, the script (entitled .NDVI_Calc3_Parameters_W.py), and its associated toolbox.
The script fails at:
arcpy.CalculateStatistics_management(inputRaster)
Troubleshooting has lead me to believe that someone it no longer recognizes the input as a raster. I've tried various workarounds (including removing the build attribute table line before that one, creating a raster object, etc.) but I still can't get it to work.
Any ideas?
Thank you in advance for any help you provide.
Sincerely,
Amelie