Hi all
Trying to automate some contour generation with ET Surface using a script.
The following script generates the error 'ETS_GPIDW() takes no arguments (7 given)'.
import arcpy arcpy.ImportToolbox(r"C:\Program Files (x86)\ET SpatialTechniques\ET Surface 6.0 for ArcGIS 10.1\ET Surface.tbx") arcpy.ETS_GPIDW("C:\points.shp", "C:\Sal.img", "Sal", 2, 5, 43, 5000)
I've tried running it from the command line within ArcMap and it works just fine.
ArcMap 10.1 and ET Surface 6.0.
Any ideas?
Cheers
Mal
Sorry to say, but I can't reproduce your error. I'm using version 6.0 for 10.2. I don't see anything wrong with your syntax - the backslash situation in the call to ETS_GPIDW raised an eyebrow, but I could also save to \Sal.img and \pSal.img, so I don't think that's it. This works for me:
import arcpy arcpy.ImportToolbox(r'C:\Program Files (x86)\ET SpatialTechniques\ET Surface 6.0 for ArcGIS 10.2\ET Surface.tbx') arcpy.ETS_GPIDW("C:\junk\csv_points.shp", "C:\junk\idw.img", "Elev", 25, 2, 12, 2000)