摘要
显示坡度的形状或曲率,该坡度可以是凹或凸,并且可以从曲率值中进行了解。 曲率通过表面的二阶导数计算得出。
语法
Curvature (raster, curvature_type, {z_factor})
参数 | 说明 | 数据类型 |
raster | The input raster dataset. | Raster |
curvature_type | 曲率类型会着重强调坡度的不同坡向。
(默认值为 standard) | String |
z_factor | The z-factor is a scaling factor used to convert the elevation values for two purposes:
If the x,y units and z units are in the same units of measure, the z-factor should be set to 1. The z-values of the input surface are multiplied by the z-factor when calculating the final output surface. (默认值为 1) | Double |
数据类型 | 说明 |
Raster | 输出栅格。 |
代码示例
本示例用于计算给定坡度的曲率。
from arcpy.ia import *
out_curvature_raster = Curvature("curvature_input.tif", "profile", 2)
out_curvature_raster.save("C:/arcpyExamples/outputs/curv_profile.tif")
本示例用于计算给定坡度的曲率。
# Import system modules
import arcpy
from arcpy.ia import *
# Set the analysis environments
arcpy.env.workspace = "C:/arcpyExamples/data"
# Set the local variables
in_raster = "curvature_input.tif"
# Execute Curvature function
out_curvature_raster = Curvature(in_raster, "planform", 3)
# Save the output
out_curvature_raster.save("C:/arcpyExamples/outputs/cur_planform.tif")