sarp.snowprofile.alignment2.0.2 package

Snow Profile Alignment, Aggregation, and Clustering

sim2dist

Convert 'similarity' matrix to 'distance' matrix

simSP

Similarity measure between snow profile pairs

averageSP

Average a group of snow profiles

averageSPalongSeason

Compute a seasonal timeseries of an average snowprofile

backtrackLayers

Backtrack layers from average or summary profile

chooseICavg

Get index of appropriate initial condition average profile

clusterSP

Cluster snow profiles

clusterSPcenters

Compute centroids/medoids for clustered snow profiles

clusterSPconfig

Configure clusterSP computation

sarp.snowprofile.alignment-package

sarp.snowprofile.alignment: Snow Profile Alignment, Aggregation, and C...

clusterSPkdba

K-dimensional barycentric average clustering for snow profiles

concat_avgSP_timeseries

Concatenate time series of average profiles

ddateDistance

Deposition Date Distance

densityDistance

Difference in layer density

distanceSP

Compute pairwise distances between snow profiles

distanceSPlayers

Calculate a multidimensional distance matrix between two profiles

dtwSP

Calculate DTW alignment of two snow profiles

extractFromScoringMatrix

Extract from Scoring matrix

flipLayers

Flip snow profile layers top down

grainSimilarity_align

Grain Type similarity matrix for DTW alignments

grainSimilarity_evaluate

Grain type similarity matrix for evaluation purposes

hardnessDistance

Difference in Hand Hardness

interactiveAlignment

Run interactive alignment app

layerWeightingMat

Weighting scheme for preferential layer matching

match_with_tolerance

Match with numeric tolerance

medoidSP

Find the medoid snow profile among a group of profiles

mergeIdentLayers

Merge layers with identical properties

ogsDistance

Difference in layer ogs

plot.clusterSP

Plot clustered snow profiles

plotCostDensitySP

Plot alignment cost density and warping path

plotSPalignment

Align and plot two snow profiles using DTW

puDistance

Difference in layer stability p_unstable

scaleSnowHeight

Scale total height of a snow profile

resampleSP

Resample snowprofile

resampleSPpairs

Resample a pair of profiles

reScaleSampleSPx

Rescale and resample a snow profile list

return_conceptually_similar_gtypes

Return conceptually similar grain types

rmZeroThicknessLayers

Remove layers with a thickness of 'zero cm'

warpSP

Warp one snow profile onto another one

warpWindowSP

Restrict the DTW warping window for snow profiles alignment

Snow profiles describe the vertical (1D) stratigraphy of layered snow with different layer characteristics, such as grain type, hardness, deposition date, and many more. Hence, they represent a data format similar to multivariate time series containing categorical, ordinal, and numerical data types. Use this package to align snow profiles by matching their individual layers based on Dynamic Time Warping (DTW). The aligned profiles can then be assessed with an independent, global similarity measure that is geared towards avalanche hazard assessment. Finally, through exploiting data aggregation and clustering methods, the similarity measure provides the foundation for grouping and summarizing snow profiles according to similar hazard conditions. In particular, this package allows for averaging large numbers of snow profiles with DTW Barycenter Averaging and thereby facilitates the computation of individual layer distributions and summary statistics that are relevant for avalanche forecasting purposes. For more background information refer to Herla, Horton, Mair, and Haegeli (2021) <doi:10.5194/gmd-14-239-2021>, Herla, Mair, and Haegeli (2022) <doi:10.5194/tc-16-3149-2022>, and Horton, Herla, and Haegeli (2024) <doi:10.5194/egusphere-2024-1609>.