reScaleSampleSPx {sarp.snowprofile.alignment} | R 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 |
resamplingRate |
resampling rate, units in centimeters |
scHeight |
a function that calculates the resulting height from the profiles, default |
... |
arguments passed on to the function provided in |
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')
[Package sarp.snowprofile.alignment version 1.2.2 Index]