Description Usage Arguments Value Author(s) Examples
View source: R/calc_conductance.R
Calculate classic MODFLOW-style stream conductance Conductance = length x width x streambed hydraulic conductivity / streambed thickness
1 | calc_conductance_modflow(swdf, k_str, str_width, str_thick)
|
swdf |
DataFrame/Geometry of node barycentric coordinates as returned by
|
k_str |
numeric, streambed hydraulic conductivity |
str_width |
numeric, stream width |
str_thick |
numeric, streambed thickness (head loss zone) |
numeric, conductance
Leland Scantlebury
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #-- Read in shapefiles
str <- read_sf(system.file("extdata", "MehlandHill2010_stream.shp", package = "pbjr"))
tri <- read_sf(system.file("extdata", "720_triangles.shp", package = "pbjr"))
vor <- read_sf(system.file("extdata", "720_voronoi.shp", package = "pbjr"))
str <- line_explode(str)
#-- Calculate barycentric weight DF
swdf <- calc_stream_voronoi_weights(stream = str, voronoi = vor, triangles = tri)
#-- Calculate distances
swdf <- stream_elev_from_slope(swdf = swdf, slope = 0.0015, initial_elev = 50)
#-- Calculate conductances
swdf$Conductance <- calc_conductance_modflow(swdf, k_str = 1,
str_width = 1, thickness = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.