Skip to main content

Curvature

汇总

显示坡度的形状或曲率,该坡度可以是凹或凸,并且可以从曲率值中进行了解。 曲率通过表面的二阶导数计算得出。

讨论

有关此函数工作原理的详细信息,请参阅 曲率 栅格函数。

栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 save 方法。

语法

Curvature(raster, curvature_type, {z_factor})

参数 说明 数据类型

raster

The input raster dataset.

Raster

curvature_type

曲率类型会着重强调坡度的不同坡向。

  • standard—将结合 profileplanform 曲率。

  • planform—垂直于最大坡度的方向。它影响流经某表面的流的汇聚和分散。

  • profile— 与坡面平行,并指示最大坡度的方向。它影响流经某表面的流的加速和减速。

(默认值为 standard)

String

z_factor

The z-factor is a scaling factor used to convert the elevation values for the following purposes:

  • Convert the elevation units (such as meters or feet) to the horizontal coordinate units of the dataset, which may be feet, meters, or degrees.

  • Add vertical exaggeration for visual effect.

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

输出栅格。

代码示例

Curvature 示例 1

本示例用于计算给定坡度的曲率。

from arcpy.ia import *
out_curvature_raster = Curvature("curvature_input.tif", "profile", 2)
out_curvature_raster.save("C:/arcpyExamples/outputs/curv_profile.tif")
Curvature 示例 2

本示例用于计算给定坡度的曲率。

# 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")