slope
gma.etools.slope
function slope(in_src, out_dst, compute_edges = None, band = 1, scale = 1.0, use_degree = True, algos = "Horn", **kwargs):
Calculate slope 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.
scale = float. Default 1.0.
The ratio of vertical units to horizontal. If the vertical unit is m and the horizontal unit is ��, you can set Scale = 111120.
use_degree = bool. Default True.
Whether to use degrees (��) for slope. If false (False), the slope is expressed as a percentage (%).
algos = str. Default 'Horn'.
Surface algorithm. May be 'Horn' or 'ZevenbergenThorne'.
**kwargs:
Other parameters passed to translate.
Returns:
Type: DataSet.