I am receiving this error when running Search Cursor...HELP!
Error that is given:
Working on pour point 0
Traceback (most recent call last):
File "C:\Users\Chris\Desktop\Hawaii\hawaii_5.py", line 30, in <module>
cur_point = select_pour_point(POUR_POINTS, NAME_FIELD, name)
NameError: name 'select_pour_point' is not defined
Part from my code that is giving the error:
for point in arcpy.da.SearchCursor(POUR_POINTS, NAME_FIELD):
name = str(point[0])
print "Working on pour point %s" % (name)
cur_point = select_pour_point(POUR_POINTS, NAME_FIELD, name)
shed_raster = make_watershed_raster(FLOW_DIRECTION, cur_point, name, SCRATCH)