AspectSlope
Краткая информация
Создает растровый объект, который одновременно отображает экспозицию и уклон поверхности.
Обсуждение
Более подробно о том, как работает эта функция, см. в разделе Экспозиция Уклон.
Указанный набор растровых данных является временным для растрового объекта. Чтобы сделать его постоянным, вы можете вызвать метод растрового объекта save.
Синтаксис
AspectSlope(raster, {z_factor})
| Параметр | Объяснение | Тип данных |
|---|---|---|
|
raster |
The input elevation raster. |
Raster |
|
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_aspectslope_raster = AspectSlope("elevation.tif", 3)
out_aspectslope_raster.save("C:/arcpyExamples/outputs/aspectslope.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"
# Run the AspectSlope function
out_aspectslope_raster = AspectSlope(in_raster, 3)
# Save the output
out_aspectslope_raster.save("C:/arcpyExamples/outputs/aspectslope.tif")