numberOfPWLsPerVerticalLevel: Count number of PWLs per vertical level

View source: R/numberOfPWLsPerVerticalLevel.R

numberOfPWLsPerVerticalLevelR Documentation

Count number of PWLs per vertical level

Description

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.

Usage

numberOfPWLsPerVerticalLevel(x, pwl_idx, depth_breaks = c(0, 30, 80, 150, Inf))

Arguments

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. Inf is a placeholder for max depth.

Value

This function returns a table object

Author(s)

fherla

Examples

SH_idx <- findPWL(SPpairs$C_day1, pwl_gtype = "SH")
numberOfPWLsPerVerticalLevel(SPpairs$C_day1, SH_idx)

numberOfPWLsPerVerticalLevel(SPpairs$C_day2, findPWL(SPpairs$C_day2))


sarp.snowprofile documentation built on March 31, 2023, 5:17 p.m.