I am trying to create a 2d Python array using data from an ArcGIS attribute table. Here's the code I've written so far:
import arcpyimport numpyinput = "c:/data/from/arcgis"a = arr["OBJECTID"]b = arr["SoilEvap5"]np.columnstack((a,b))print arrWhen I try running this in the ArcGIS Python window, it returns:
Runtime error Traceback (most recent call last): File "", line 6, in ValueError: field named OBJECTID not found.However, OBJECTID is a field in my attribute table, so I'm not sure what is going on.
أكثر...
import arcpyimport numpyinput = "c:/data/from/arcgis"a = arr["OBJECTID"]b = arr["SoilEvap5"]np.columnstack((a,b))print arrWhen I try running this in the ArcGIS Python window, it returns:
Runtime error Traceback (most recent call last): File "", line 6, in ValueError: field named OBJECTID not found.However, OBJECTID is a field in my attribute table, so I'm not sure what is going on.
أكثر...