davisam1

is reclassify from the spatial analyst toolset available at the python command line?

Discussion created by davisam1 on Aug 26, 2011
Latest reply on Aug 26, 2011 by csny490
Hi!
I'm trying to batch a bunch of files and have the following code:
arcpy.ReclassByASCIIFile_sa("D:/DATA/ILLINOIS/RFP_Landcover/Raster/chi_U19","C:/Users/Ams/Documents/SUM2011/recMap_chi_highres.txt","D:/DATA/ILLINOIS/RFP_Landcover/Raster/Reclass/Chi_U19_rc","DATA")
arcpy.ReclassByASCIIFile_sa("D:/DATA/ILLINOIS/RFP_Landcover/Raster/chi_U20","C:/Users/Ams/Documents/SUM2011/recMap_chi_highres.txt","D:/DATA/ILLINOIS/RFP_Landcover/Raster/Reclass/Chi_U20_rc","DATA")
...

I got the "code" from running it for one file and then using the "copy as python snippet" so it should work
but I get this error:
Runtime error <type 'exceptions.AttributeError'>: 'module' object has no attribute 'ReclassByASCIIFile_sa'

and when I try to get to the spatial analyst reclass tool in the command line by typing
arcpy.reclass only the ones from the 3D toolbox are available?

Does anyone know what I am doing wrong?  should I just use the 3D ones?

Any assistance is appreciated.
Amelie

PS Yes, I have checked that my spatial analyst toolbox is activated

Outcomes