I'm trying to call Euclidean Distance in an arcpy script within a toolbox. I've used arcpy.sa.EucDistance but the output raster is a Euclidean Direction raster. When I run it in the python dialog, it works as intended and when I run the tool Euclidean Distance tool it works normally.
Does anyone have an idea of what's going on? relevant code below.
import arcpy from arcpy.sa import * lines = r"C:\shapes\Lines.shp output = r"C:\rasters\EucDistLines.tif" EucDist = arcpy.sa.EucDistance(lines, 6000, 3, output)