AnsweredAssumed Answered

Script works in 10.2 with python 2.7.3 but not 10.3 with 2.7.8

Question asked by davisam1 on Apr 29, 2016
Latest reply on May 6, 2016 by curtvprice

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.

Python_Error.JPG

 

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

Attachments

Outcomes