rmZeroThicknessLayers: Remove layers with a thickness of 'zero cm'

Description Usage Arguments Value Author(s)

View source: R/rmZeroThicknessLayers.R

Description

Find layers in a snow profile that are zero cm thick (i.e. height vector stays constant for some layers, even though grain types or hardness may change). Then, either remove those layers, or reset them with the layer characteristics of the lower adjacent (non-zero-thickness) layer. In the latter case (i.e., reset), the number of layers won't change, but those non-zero thickness layers will be made ineffective. This procedure is particularly necessary for warping snow profiles (cf., dtwSP, warpSP).

Usage

1
rmZeroThicknessLayers(x, rm.zero.thickness = TRUE)

Arguments

x

A snowprofile or snowprofileLayers object

rm.zero.thickness

Want to remove zero-thickness layers from profile? boolean, default TRUE. If FALSE, those zero-thickness layers will be reset to the lower adjacent (non-zero-thickness) layer; thus, the number of layers won't be changed.

Value

A modified copy of the input object. For snowprofile objects, the field $changes will be initialized or extended.

Author(s)

fherla


sarp.snowprofile.alignment documentation built on Dec. 3, 2020, 9:08 a.m.