描述
标识从每个像元到其相邻像元方向上值的变化率最大的下坡方向。
代码示例
本示例将计算栅格数据集的坡向。
from arcpy.ia import *
out_aspect_raster = Aspect("elevation.tif")
out_aspect_raster.save("C:/arcpyExamples/outputs/aspect.tif")
本示例将计算栅格数据集的坡向。
# Import the system modules
import arcpy
from arcpy.ia import *
# Set the analysis environments
arcpy.env.workspace = "C:/arcpyExamples/data"
# Set the local variables
in_raster = "elevation.tif"
# Execute Aspect function
out_aspect_raster = Aspect(in_raster)
# Save the output
out_aspect_raster.save("C:/arcpyExamples/outputs/aspect.tif")