stand_mapping.data package

Submodules

stand_mapping.data.fetch module

stand_mapping.data.util module

stand_mapping.data.util.classify_landform(tpi_near, tpi_far, slope)[source]

Classifies a landscape into 10 landforms given “near” and “far” values of Topographic Position Index (TPI) and a slope raster.

Landform # Description
1 canyons, deeply-incised streams
2 midslope drainages, shallow valleys
3 upland drainages, headwaters
4 U-shape valleys
5 plains
6 open slopes
7 upper slopes, mesas
8 local ridges, hills in valleys
9 midslope ridges, small hills in plains
10 mountain tops, high ridges

Classification following Weiss, A. 2001. “Topographic Position and Landforms Analysis.” Poster presentation, ESRI User Conference, San Diego, CA. http://www.jennessent.com/downloads/tpi-poster-tnc_18x22.pdf

Parameters:
  • tpi_near (array) – TPI values calculated using a smaller neighborhood, assumed to be normalized to have mean = 0 and standard deviation = 1
  • tpi_far (array) – TPI values calculated using a smaller neighborhood, assumed to be normalized to have mean = 0 and standard deviation = 1
  • slope (array) – slope of terrain, in degrees
stand_mapping.data.util.classify_slope_position(tpi, slope)[source]

Classifies an image of normalized Topograhic Position Index into 6 slope position classes:

Slope # Description
1 Valley
2 Lower Slope
3 Flat Slope
4 Middle Slope
5 Upper Slope
6 Ridge

Classification following Weiss, A. 2001. “Topographic Position and Landforms Analysis.” Poster presentation, ESRI User Conference, San Diego, CA. http://www.jennessent.com/downloads/tpi-poster-tnc_18x22.pdf

Parameters:
  • tpi (array) – TPI values, assumed to be normalized to have mean = 0 and standard deviation = 1
  • slope (array) – slope of terrain, in degrees
stand_mapping.data.util.multi_to_single_linestring(geom)[source]

Converts a MultiLineString geometry into a single LineString

Parameters:geom (LineString or MultiLineString) – a LineString or MultiLineString geometry object
Returns:ls – LineString based on connecting lines within MultiLineString in the same order they are originally read.
Return type:LineString
stand_mapping.data.util.slope_from_dem(dem, res, degrees=False)[source]

Calculates slope from a Digital Elevation Model using a Sobel filter.

Parameters:
  • dem (array) – a Digital Elevation Model
  • res (numeric) – spatial resolution of the Digital Elevation Model
  • degrees (bool) – whether to return the slope as a percent (default) or to convert to degrees
Returns:

slope – slope of DEM

Return type:

array

Module contents