aspect
gma.etools.aspect
function aspect(in_src, out_dst, compute_edges = None, band = 1, trigonometric = False, zero_for_flat = False, algos = "Horn", **kwargs):
Calculate aspect from any supported DEM raster file!
Parameters:
in_src: str.
The input raster file path.
out_dst: str.
The output raster file path.
Optional:
compute_edges = bool. Default True.
Whether to compute raster edge data and data near no data values.
Setting values that are not True are treated as False.
band = int. Default 1.
Number of the element calculation band. Start with 1.
trigonometric = bool. Default False.
Whether to use (triangular) angles instead of azimuths. Setting values that are not True are treated as False.
Azimuth angle: take the true north direction as 0��, and the horizontal included angle between the clockwise direction and the target direction line.
(Triangular) angle: 0�� from due east. The horizontal angle between the counterclockwise direction and the target direction line.
zero_for_flat = bool. Default False.
Whether to assign 0 to areas with 0�� aspect. The default (False) assignment is -9999.
Setting values that are not True are treated as False.
algos = str. Default 'Horn'.
Surface algorithm. May be 'Horn' or 'ZevenbergenThorne'.
**kwargs:
Other parameters passed to translate.
Returns:
Type: DataSet.