Skip to content

giserh/polygon-slope-length

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

polygon-slope-length

This python script calculates slope length rasters within polygons from a dem using ArcPy and SAGA GIS.

slpl

Usage

There are several variables within the script that need to be set before running, mainly:

fc = "D:\data\working_dir\polygons.shp"  # Polygon feature class
dem = "D:\data\working_dir\dem.tif"
clipping_poly = "D:\data\working_dir\clip_poly.shp" # Temporary output, will be overwritten. 
clipped_dem_path = "D:\data\working_dir\clipped_rasters\\"
slope_output_path = "D:\data\working_dir\slope_out\\"

SAGA GIS and ArcGIS 10.x must be installed with an available Spatial Analyst license.

About

Calculating slope length rasters within polygons from a dem using ArcPy and SAGA GIS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages