remove_alpine_bcfwa: Remove Alpine Reaches BCFWA

View source: R/remove_alpine_bcfwa.R

remove_alpine_bcfwaR Documentation

Remove Alpine Reaches BCFWA

Description

Remove alpine areas based on elevation parameters embedded within BCFWA stream network. Choose a elevation threshold relevant to your area of interest.

Usage

remove_alpine_bcfwa(strm = NA, elevation_threshold = 1000)

Arguments

strm

A streamlines dataset of class sf from the BCFWA.

elevation_threshold

Numeric. Elevation threshold for alpine areas. Stream reaches above this threshold will be omitted from the analysis and clipped to the threshold.

Details

The BCFWA contains elevation data for each stream reach. The z geometry (or elevation) is embedded within the stream line geometry data and can be used to filter out or trim segments that are located above a given elevation threshold. Note that converting the streamline data from .gdb to .shp through intermediate data processing will result in a loss of the z geometry. It is therefore recommended that users stick to using .gdb or .gpkg file formats to preserve the elevation data.

Value

An streamlines dataset of class sf with alpine areas removed

Examples

## Not run: 

library(wsep.t2)

# Trim stream reaches above 200m
data(TsolumStreams)
# Trim segments to an eelvation threshold
strm <- remove_alpine_bcfwa(strm = TsolumStreams,
 elevation_threshold = 200)
strm_plot <- sf::st_zm(strm)
plot(sf::st_geometry(TsolumStreams))
plot(sf::st_geometry(strm_plot), add = TRUE, col = "red")

# Trim stream reaches above 1200m
data(SpiusStreams)
# Trim segments to an eelvation threshold
strm <- remove_alpine_bcfwa(strm = SpiusStreams,
 elevation_threshold = 1200)
strm_plot <- sf::st_zm(strm)
plot(sf::st_geometry(SpiusStreams))
plot(sf::st_geometry(strm_plot), add = TRUE, col = "red")

## End(Not run)



essatech/wsep.t2 documentation built on Sept. 3, 2022, 5:56 a.m.