reScaleSampleSPx function

Rescale and resample a snow profile list

Rescale and resample a snow profile list

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

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

Returns

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

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')

Author(s)

fherla