VectorFieldRenderer
汇总
使用矢量符号可视化栅格中的流向和量级信息。
讨论
栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 save 方法。
语法
VectorFieldRenderer(raster, {is_uv_components}, {reference_system}, {mass_flow_angle_representation}, {calculation_method}, {symbology_name})
| 参数 | 说明 | 数据类型 |
|---|---|---|
|
raster |
The input raster. |
Raster |
|
is_uv_components |
Specifies whether the input components represent U-V, or magnitude and direction.
(默认值为 None) |
Boolean |
|
reference_system |
Specifies how the direction component is measured.
(默认值为 2) |
Integer |
|
mass_flow_angle_representation |
Specifies the angle of mass flow.
(默认值为 From) |
Integer |
|
calculation_method |
Specifies the thinning method to be used to calculate the magnitude and direction value of a tile.
(默认值为 Vector Average) |
String |
|
symbology_name |
Specifies the name of the symbol depicting direction and magnitude.
(默认值为 Single Arrow) |
String |
返回值
| 数据类型 | 说明 |
|---|---|
|
Raster |
根据您的渲染参数显示的输出栅格。 |
代码示例
使用矢量符号可视化栅格中的流向和量级信息。
import arcpy
VectorFieldRenderer_raster = arcpy.sa.VectorFieldRenderer(out_vector_field_raster,
is_uv_components=False, reference_system='Geographic',
mass_flow_angle_representation='from')