extract_xs_wbf: Extract cross sections and bankfull width (parallel)

Description Usage Arguments Details Examples

Description

Extracts cross sections and bankfull width in parallel

Usage

1
extract_xs_wbf(cross_section, depth, hpc = TRUE, h = 20)

Arguments

cross_section

output from bisect_line_segments()

depth

bathymetry raster

hpc

flag for "high performance computing"

h

minimum width (in pixels) to count a channel

Details

This is the same as extract_wbf, except that it also outputs the transects and has some error catches. Extracts data underlying the lines in cross_section. Uses first and last overlapped pixels to estimate bankfull width from perpendicular bisectors to the river centerline. For Pool 5, I got an error about raster I/O. I think this is due to a corrupt raster file.

Examples

1
2
wbfs_and_mc <- extract_xs_wbf(cross_section, depth, hpc = TRUE)
wbfs_and_mc <- extract_xs_wbf(cross_section[1:10], depth, hpc = TRUE)

jschap1/WSEw documentation built on May 12, 2019, 10:50 a.m.