I am attemping to call arcpy.sa.CostDistance to calculate the cost distance to a source point as well as generate the optional Cost Back link raster:
arcpy.sa.CostDistance("input", cost, "costDist", "", "costBackLink")
Which yields this error when executed within the Python Windows of ArcGIS:
>>> arcpy.sa.CostDistance("input", cost, "costDist", "", "costBackLink") Runtime error Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: CostDistance() takes at most 4 arguments (5 given)
Oddly though, the exact same processing when executed via the Toolbox executes fine. The inline help that appears next to the Python Window when entering a function name also references the 5 arguments.
Why is this happening?