View source: R/numberOfPWLsPerVerticalLevel.R
numberOfPWLsPerVerticalLevel | R Documentation |
This is a wrapper function to bin several weak layers (or crusts) into vertical levels. The layers to be binned can be controlled with a provided index vector for full customization.
numberOfPWLsPerVerticalLevel(x, pwl_idx, depth_breaks = c(0, 30, 80, 150, Inf))
x |
snowprofile or snowprofileLayers object |
pwl_idx |
an index vector that corresponds to the layers of interest. Tip: this can also be a call to findPWL, see examples. |
depth_breaks |
a vector of break points referring to absolute depth values. |
This function returns a table
object
fherla
SH_idx <- findPWL(SPpairs$C_day1, pwl_gtype = "SH")
numberOfPWLsPerVerticalLevel(SPpairs$C_day1, SH_idx)
numberOfPWLsPerVerticalLevel(SPpairs$C_day2, findPWL(SPpairs$C_day2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.