Curvature
汇总
显示坡度的形状或曲率,该坡度可以是凹或凸,并且可以从曲率值中进行了解。 曲率通过表面的二阶导数计算得出。
讨论
有关此函数工作原理的详细信息,请参阅 曲率 栅格函数。
栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 save 方法。
语法
Curvature(raster, curvature_type, {z_factor})
| 参数 | 说明 | 数据类型 |
|---|---|---|
|
raster |
The input raster dataset. |
Raster |
|
curvature_type |
曲率类型会着重强调坡度的不同坡向。
(默认值为 standard) |
String |
|
z_factor |
The
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"
# Run Curvature function
out_curvature_raster = Curvature(in_raster, "planform", 3)
# Save the output
out_curvature_raster.save("C:/arcpyExamples/outputs/cur_planform.tif")