Package: sarp.snowprofile.alignment 2.0.2

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

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>.

Authors:Florian Herla [aut, cre], Pascal Haegeli [aut], Simon Horton [aut], Paul Billecocq [aut], SFU Avalanche Research Program [fnd]

sarp.snowprofile.alignment_2.0.2.tar.gz
sarp.snowprofile.alignment_2.0.2.zip(r-4.5)sarp.snowprofile.alignment_2.0.2.zip(r-4.4)sarp.snowprofile.alignment_2.0.2.zip(r-4.3)
sarp.snowprofile.alignment_2.0.2.tgz(r-4.4-any)sarp.snowprofile.alignment_2.0.2.tgz(r-4.3-any)
sarp.snowprofile.alignment_2.0.2.tar.gz(r-4.5-noble)sarp.snowprofile.alignment_2.0.2.tar.gz(r-4.4-noble)
sarp.snowprofile.alignment_2.0.2.tgz(r-4.4-emscripten)sarp.snowprofile.alignment_2.0.2.tgz(r-4.3-emscripten)
sarp.snowprofile.alignment.pdf |sarp.snowprofile.alignment.html
sarp.snowprofile.alignment/json (API)
NEWS

# Install 'sarp.snowprofile.alignment' in R:
install.packages('sarp.snowprofile.alignment', repos = c('https://fherla.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

34 exports 0.23 score 8 dependencies 12 scripts 306 downloads

Last updated 23 days agofrom:9c8f6dfe1e. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 26 2024
R-4.5-winOKAug 26 2024
R-4.5-linuxOKAug 26 2024
R-4.4-winOKAug 26 2024
R-4.4-macOKAug 26 2024
R-4.3-winOKAug 26 2024
R-4.3-macOKAug 26 2024

Exports:averageSPaverageSPalongSeasonbacktrackLayerschooseICavgclusterSPclusterSPcentersclusterSPconfigclusterSPkdbaconcat_avgSP_timeseriesdbaSPddateDistancedistanceSPdistanceSPlayersdtwSPflipLayersgrainSimilarity_aligngrainSimilarity_evaluateinteractiveAlignmentlayerWeightingMatmatch_with_tolerancemedoidSPmergeIdentLayersplotCostDensitySPplotSPalignmentresampleSPresampleSPpairsreScaleSampleSPxreturn_conceptually_similar_gtypesrmZeroThicknessLayersscaleSnowHeightsim2distsimSPwarpSPwarpWindowSP

Dependencies:cliclusterdata.tabledtwproxyrlangsarp.snowprofilexml2

Averaging of profiles and retrieval of distributions

Rendered fromaveraging.Rmdusingknitr::rmarkdownon Aug 26 2024.

Last update: 2024-08-26
Started: 2022-08-07

Basic workflow of layer matching and profile alignment

Rendered fromworkflow.Rmdusingknitr::rmarkdownon Aug 26 2024.

Last update: 2024-08-26
Started: 2020-12-03

Clustering snow profiles

Rendered fromclustering.Rmdusingknitr::rmarkdownon Aug 26 2024.

Last update: 2024-08-26
Started: 2024-08-26

Technical details: layer matching

Rendered fromtechnical-details.Rmdusingknitr::rmarkdownon Aug 26 2024.

Last update: 2024-08-26
Started: 2020-12-03

Readme and manuals

Help Manual

Help pageTopics
Average a group of snow profilesaverageSP dbaSP
Compute a seasonal timeseries of an average snowprofileaverageSPalongSeason
Backtrack layers from average or summary profilebacktrackLayers
Get index of appropriate initial condition average profilechooseICavg
Cluster snow profilesclusterSP
Compute centroids/medoids for clustered snow profilesclusterSPcenters
Configure clusterSP computationclusterSPconfig
K-dimensional barycentric average clustering for snow profilesclusterSPkdba
Concatenate time series of average profilesconcat_avgSP_timeseries
Deposition Date DistanceddateDistance
Difference in layer densitydensityDistance
Compute pairwise distances between snow profilesdistanceSP
Calculate a multidimensional distance matrix between two profilesdistanceSPlayers
Calculate DTW alignment of two snow profilesdtwSP
Extract from Scoring matrixextractFromScoringMatrix
Flip snow profile layers top downflipLayers
Grain Type similarity matrix for DTW alignmentsgrainSimilarity_align
Grain type similarity matrix for evaluation purposesgrainSimilarity_evaluate
Difference in Hand HardnesshardnessDistance
Run interactive alignment appinteractiveAlignment
Weighting scheme for preferential layer matchinglayerWeightingMat
Match with numeric tolerancematch_with_tolerance
Find the medoid snow profile among a group of profilesmedoidSP
Merge layers with identical propertiesmergeIdentLayers
Difference in layer ogsogsDistance
Plot clustered snow profilesplot.clusterSP
Plot alignment cost density and warping pathplotCostDensitySP
Align and plot two snow profiles using DTWplotSPalignment
Difference in layer stability p_unstablepuDistance
Resample snowprofileresampleSP
Resample a pair of profilesresampleSPpairs
Rescale and resample a snow profile listreScaleSampleSPx
Return conceptually similar grain typesreturn_conceptually_similar_gtypes
Remove layers with a thickness of 'zero cm'rmZeroThicknessLayers
Scale total height of a snow profilescaleSnowHeight
Convert 'similarity' matrix to 'distance' matrixsim2dist
Similarity measure between snow profile pairssimSP
Additional example set of snow profilesSPgroup2
Additional example set of snow profilesSPspacetime
Similarity Matrix of Snow Grain TypesswissSimilarityMatrix
Warp one snow profile onto another onewarpSP
Restrict the DTW warping window for snow profiles alignmentwarpWindowSP