mbrigha1

Script runs perfectly, but no output raster created

Discussion created by mbrigha1 on Feb 20, 2011
Latest reply on Sep 22, 2013 by thanos_cp78
I have the following script that runs without errors, but fails to produce an output raster that is added to the display.  Any idea why this is happening?:

#Import arcpy module
import arcpy

# Script arguments
wksp = arcpy.GetParameterAsText(0)
DEM_Dataset = arcpy.GetParameterAsText(1)
Landuse_Data = arcpy.GetParameterAsText(2)
Output = arcpy.GetParameterAsText(3)
arcpy.env.workspace = wksp

# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")
arcpy.env.overwriteOutput=True

# Local variables:
Slope_Output = "DEM_Dataset"
Slope_Reclass_Output = "Slope_Output"
Aspect_Output = "DEM_Dataset2"
Aspect_Reclass_Output = "Aspect_Output"
Landuse_Reclass = "Landuse_Data"

# Process: Aspect
arcpy.gp.Aspect_sa(DEM_Dataset, Aspect_Output)

# Process: Aspect Reclass
arcpy.gp.Reclassify_sa(Aspect_Output, "Value", "-1 0 3;45 135 2;135 225 3;225 315 2;315 360 1", Aspect_Reclass_Output, "DATA")

# Process: Slope
arcpy.gp.Slope_sa(DEM_Dataset, Slope_Output, "DEGREE", "1")

# Process: Slope Reclass
arcpy.gp.Reclassify_sa(Slope_Output, "Value", "0 3 3;3 6 2;6 90 1", Slope_Reclass_Output, "DATA")

# Process: Reclassify Landuse
arcpy.gp.Reclassify_sa(Landuse_Data, "Value", "1 17 0;18 1;19 72 0;73 1;74 242 0", Landuse_Reclass, "NODATA")

# Process: Arcpy Math
PlusOutput = arcpy.gp.plus_sa(Aspect_Reclass_Output, Slope_Reclass_Output)
BestSite = arcpy.gp.times_sa(PlusOutput, Landuse_Reclass)

Outcomes