reScaleSampleSPx: Rescale and resample a snow profile list

View source: R/reScaleSampleSPx.R

reScaleSampleSPxR Documentation

Rescale and resample a snow profile list

Description

Rescale and resample all snow profiles provided in a list to an identical snow height and resampling rate.

Usage

reScaleSampleSPx(SPx, resamplingRate = 0.5, scHeight = median, ...)

Arguments

SPx

list of snowprofile objects

resamplingRate

resampling rate, units in centimeters

scHeight

a function that calculates the resulting height from the profiles, default median

...

arguments passed on to the function provided in scHeight

Value

A list with the first entry $set storing the rescaled and resampled profile list, the second entry $maxHS stores the maximum snow height found among the profiles

Author(s)

fherla

Examples


## let's take the 'SPgroup' object as profile list
SPrr <- reScaleSampleSPx(SPgroup)
print(paste0("max height before rescaling: ", SPrr$maxHS, " cm"))
print(paste0("rescaled height: ", SPrr$set[[1]]$hs, " cm"))
plot(SPrr$set, SortMethod = 'unsorted')


sarp.snowprofile.alignment documentation built on Aug. 8, 2022, 1:05 a.m.