openSTARS (version 1.1.0)

check_compl_junctions: Check if there are more than two inflows to an outflow.

Description

It is checked, if there are more than two inflows to an outflow.

Usage

check_compl_junctions()

Arguments

Value

TRUE if there are complex junctions.

Details

It is checked, if there are columns named 'prev_str03', 'prev_str04' and 'prev_str05' in the attribute table of streams_v derived with derive_streams (i.e. based on the GRASS function r.stream.order).

Examples

Run this code
# NOT RUN {
# Initiate GRASS session
if(.Platform$OS.type == "windows"){
  gisbase = "c:/Program Files/GRASS GIS 7.4.0"
  } else {
  gisbase = "/usr/lib/grass74/"
  }
initGRASS(gisBase = gisbase,
    home = tempdir(),
    override = TRUE)

# Load files into GRASS
dem_path <- system.file("extdata", "nc", "elev_ned_30m.tif", package = "openSTARS")
sites_path <- system.file("extdata", "nc", "sites_nc.shp", package = "openSTARS")
setup_grass_environment(dem = dem_path)
import_data(dem = dem_path, sites = sites_path)
gmeta()

# Derive streams from DEM
derive_streams(burn = 0, accum_threshold = 700, condition = TRUE, clean = TRUE)

check_compl_junctions()
# }

Run the code above in your browser using DataLab