import arcpy import string from arcpy import env arcpy.env.overwriteOutput=True from arcpy.sa import * arcpy.CheckOutExtension("Spatial") # Set the output location, extent and Mask OutLocation = arcpy.GetParameterAsText(0) arcpy.env.extent = arcpy.Extent(-180.0, -90.0, 180.0, 90.0) arcpy.env.mask = (InputZ) # Input strings and variables StageAge = str(arcpy.GetParameterAsText(1)) BSS = arcpy.Raster(arcpy.GetParameterAsText(2)) InputLatitude = arcpy.Raster(arcpy.GetParameterAsText(3)) InputZ = arcpy.Raster(arcpy.GetParameterAsText(4)) InputCountrylines = arcpy.GetParameterAsText(5) NPPEquation = str(arcpy.GetParameterAsText(6))
Solved! Go to Solution.
import arcpy arcpy.CheckOutExtension("Spatial") from arcpy import env env.workspace = r"C:\data\raster\dem" InputZ = arcpy.GetParameterAsText(0) env.mask = InputZ arcpy.Slope_3d("example","Slope","DEGREE","1")
arcpy.env.mask = InputZ InputZ = arcpy.GetParameterAsText(4)
import arcpy arcpy.CheckOutExtension("Spatial") from arcpy import env env.workspace = r"C:\data\raster\dem" InputZ = arcpy.GetParameterAsText(0) env.mask = InputZ arcpy.Slope_3d("example","Slope","DEGREE","1")