resample_xs: Resample Cross Section

Description Usage Arguments Examples

Description

Uses linear interpolation to resample cross sections with different resolutions to the same resolution.

Usage

1
resample_xs(cross_sections, n)

Arguments

cross_sections

list of cross section data

n

resolution of the resample cross sections

Examples

1
2
3
4
5
xs.res <- resample_xs(cross_sections, n)
# check that it worked
x <- 100
plot(cross_sections$x[[x]], cross_sections$b[[x]])
lines(xs.res[x,,1], xs.res[x,,2], col = "red")

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