<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing with OASIS Tables v3.0 20080202//EN" "journalpub-oasis3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oasis="http://docs.oasis-open.org/ns/oasis-exchange/table" xml:lang="en" dtd-version="3.0">
  <front>
    <journal-meta><journal-id journal-id-type="publisher">GMD</journal-id><journal-title-group>
    <journal-title>Geoscientific Model Development</journal-title>
    <abbrev-journal-title abbrev-type="publisher">GMD</abbrev-journal-title><abbrev-journal-title abbrev-type="nlm-ta">Geosci. Model Dev.</abbrev-journal-title>
  </journal-title-group><issn pub-type="epub">1991-9603</issn><publisher>
    <publisher-name>Copernicus Publications</publisher-name>
    <publisher-loc>Göttingen, Germany</publisher-loc>
  </publisher></journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.5194/gmd-14-239-2021</article-id><title-group><article-title>Snow profile alignment and similarity assessment for aggregating, clustering, and evaluating snowpack model output <?xmltex \hack{\break}?> for avalanche forecasting</article-title><alt-title>Snow profile alignment and similarity assessment</alt-title>
      </title-group><?xmltex \runningtitle{Snow profile alignment and similarity assessment}?><?xmltex \runningauthor{F. Herla et al.}?>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes" rid="aff1">
          <name><surname>Herla</surname><given-names>Florian</given-names></name>
          <email>fherla@sfu.ca</email>
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1 aff2">
          <name><surname>Horton</surname><given-names>Simon</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-2936-8688</ext-link></contrib>
        <contrib contrib-type="author" corresp="no" rid="aff3">
          <name><surname>Mair</surname><given-names>Patrick</given-names></name>
          
        </contrib>
        <contrib contrib-type="author" corresp="no" rid="aff1">
          <name><surname>Haegeli</surname><given-names>Pascal</given-names></name>
          
        <ext-link>https://orcid.org/0000-0003-1407-8397</ext-link></contrib>
        <aff id="aff1"><label>1</label><institution>Simon Fraser University, Burnaby, BC, Canada</institution>
        </aff>
        <aff id="aff2"><label>2</label><institution>Avalanche Canada, Revelstoke, BC, Canada</institution>
        </aff>
        <aff id="aff3"><label>3</label><institution>Harvard University, Cambridge, MA, USA</institution>
        </aff>
      </contrib-group>
      <author-notes><corresp id="corr1">Florian Herla (fherla@sfu.ca)</corresp></author-notes><pub-date><day>15</day><month>January</month><year>2021</year></pub-date>
      
      <volume>14</volume>
      <issue>1</issue>
      <fpage>239</fpage><lpage>258</lpage>
      <history>
        <date date-type="received"><day>29</day><month>May</month><year>2020</year></date>
           <date date-type="rev-request"><day>10</day><month>August</month><year>2020</year></date>
           <date date-type="rev-recd"><day>28</day><month>October</month><year>2020</year></date>
           <date date-type="accepted"><day>16</day><month>November</month><year>2020</year></date>
      </history>
      <permissions>
        <copyright-statement>Copyright: © 2021 Florian Herla et al.</copyright-statement>
        <copyright-year>2021</copyright-year>
      <license license-type="open-access"><license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p></license></permissions><self-uri xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021.html">This article is available from https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021.html</self-uri><self-uri xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021.pdf">The full text article is available as a PDF file from https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021.pdf</self-uri>
      <abstract><title>Abstract</title>
    <p id="d1e123">Snowpack models simulate the evolution of the snow stratigraphy based on meteorological inputs and have the potential to support avalanche risk management operations with complementary information relevant for their avalanche hazard assessment, especially in data-sparse regions or at times of unfavorable weather and hazard conditions. However, the adoption of snowpack models in operational avalanche forecasting has been limited, predominantly due to missing data processing algorithms and uncertainty around model validity. Thus, to enhance the usefulness of snowpack models for the avalanche industry, numerical methods are required that evaluate and summarize snowpack model output in accessible and relevant ways. We present algorithms that compare and assess generic snowpack data from both human observations and models, which consist of multidimensional sequences describing the snow characteristics of grain type, hardness, and age. Our approach exploits Dynamic   Time Warping, a well-established method in the data sciences, to match layers between snow profiles and thereby align them. The similarity of the aligned profiles is then evaluated by our independent similarity measure based on characteristics relevant for avalanche hazard assessment. Since our methods provide the necessary quantitative link to data clustering and aggregating methods, we demonstrate how snowpack model output can be grouped and summarized according to similar hazard conditions. By emulating aspects of the human avalanche hazard assessment process, our methods aim to promote the operational application of snowpack models so that avalanche forecasters can begin to build an understanding of how to interpret and trust operational snowpack simulations.</p>
  </abstract>
    </article-meta>
  </front>
<body>
      

<sec id="Ch1.S1" sec-type="intro">
  <label>1</label><title>Introduction</title>
      <p id="d1e135">Snow avalanches are a serious mountain hazard, whose risk is managed through a combination of long- and short-term mitigation measures, depending on the character of the exposed elements at risk. Avalanche forecasting – the prediction of avalanche hazard over a specific area of terrain <xref ref-type="bibr" rid="bib1.bibx7" id="paren.1"/> – is a critical prerequisite for choosing effective short-term mitigation measures and timing them properly (e.g., publication of advisories, temporary closures, proactive triggering of avalanches). The task of avalanche forecasters<fn id="Ch1.Footn1"><p id="d1e141">We use the term avalanche forecaster to describe anybody who assesses avalanche hazard conditions to make decisions about short-term mitigation options. This can include public avalanche forecasters, avalanche safety technicians, ski patrollers, mountain guides, and private recreationists.</p></fn> is to integrate the available weather, snowpack, and avalanche observations into a coherent mental model of the hazard conditions across their area of interest <xref ref-type="bibr" rid="bib1.bibx24 bib1.bibx25 bib1.bibx32" id="paren.2"/>. <xref ref-type="bibr" rid="bib1.bibx53" id="text.3"/> describe the essence of avalanche forecasting as answering four sequential questions. (1) <italic>What</italic> type of avalanche problem(s) exist? (2) <italic>Where</italic> are these problems located in the terrain? (3) <italic>How likely</italic> are avalanches to occur? (4) <italic>How big</italic> will these avalanches be? Because of the complexity of the avalanche phenomenon and the large uncertainty due to the spatial and temporal variability of snowpack properties <xref ref-type="bibr" rid="bib1.bibx52" id="paren.4"/>, avalanche forecasts are subjective expert judgments that are expressed in qualitative degrees of belief <xref ref-type="bibr" rid="bib1.bibx59" id="paren.5"/>.</p>
      <p id="d1e170">Snow profiles describing the stratigraphy of the snowpack and the characteristics of the individual layers <xref ref-type="bibr" rid="bib1.bibx33" id="paren.6"/> are an important source of information for avalanche forecasting. While avalanche observations offer direct evidence of unstable conditions, the information on structural weaknesses and slab properties contained in snow profiles is crucial for developing a more complete understanding of the nature of the avalanche hazard and its spatial distribution, as well as making predictions about the likelihood of avalanches and their expected size. To adequately capture the conditions in an area of interest, it is common practice for avalanche forecasters to collect snow profile information from a variety of informative locations and employ targeted sampling to address specific hypotheses. When observing a snow profile, traditionally the most commonly recorded layer characteristics are snow grain type, grain size, and layer hardness. In addition, layers representing critical structural weaknesses are often labeled with their burial date to facilitate tracking and simplify communication <xref ref-type="bibr" rid="bib1.bibx8" id="paren.7"/>. Snow profiles that contain information about these layer characteristics are referred to as <italic>generic</italic> snow profiles hereafter and represent the main source of snow stratigraphy information in operational contexts. Snowpack tests might be performed next to profile locations to examine the potential for fracture initiation and failure propagation along specific layers of interest.</p>
      <p id="d1e182">As a winter progresses, avalanche forecasters continuously synthesize the collected snow profile information into a comprehensive picture of existing hazard conditions across the terrain. While experienced forecasters can process snow profile information intuitively and effortlessly, the process is actually a challenging exercise in multidimensional pattern recognition, pattern matching, and data assimilation, which requires several advanced skills. These include matching key features between profiles, assessing the similarity or dissimilarity of profiles, combining the information from several profiles into an overall perspective, and extrapolating the identified patterns across terrain based on knowledge of snowpack processes and how they are affected by terrain. In North America, it is common practice among avalanche forecasters to document their understanding of the local snowpack by sketching synthesized snow profiles for different areas of interest (e.g., elevation- or aspect-specific).</p>
      <p id="d1e185">Since the late 1980s, physically based numerical snowpack models have been developed to expand the available information sources for avalanche forecasters beyond traditional field observations. The most commonly used snowpack models are Crocus <xref ref-type="bibr" rid="bib1.bibx6 bib1.bibx60" id="paren.8"/> and <sc>snowpack</sc> <xref ref-type="bibr" rid="bib1.bibx26 bib1.bibx1 bib1.bibx29 bib1.bibx28" id="paren.9"/>. Both of these models simulate the stratigraphy of the snowpack at a point location by integrating meteorological input data over a winter season. The source for the meteorological forcing can be time series of in situ observations, outputs of numerical weather prediction models, or assimilation products that integrate both. The physical properties of the individual snow layers (e.g., grain type, grain size, hardness) are simulated using empirical representations of the key snowpack processes (e.g., snow metamorphism, water percolation, settlement) that are tied together by the conservation of mass and energy.</p>
      <p id="d1e198">Over the last 20 years, extensive research has been conducted to improve the capabilities of snowpack models and explore their application for avalanche forecasting. Many contributions evaluated or improved the skill of the models with respect to hazardous weak layer formation <xref ref-type="bibr" rid="bib1.bibx9 bib1.bibx4 bib1.bibx3 bib1.bibx19 bib1.bibx20 bib1.bibx18 bib1.bibx57" id="paren.10"/> or weak layer detection <xref ref-type="bibr" rid="bib1.bibx34" id="paren.11"/>. Others tried to assess snow stability from model outputs <xref ref-type="bibr" rid="bib1.bibx51 bib1.bibx48 bib1.bibx35" id="paren.12"/> and estimate danger levels <xref ref-type="bibr" rid="bib1.bibx30 bib1.bibx47 bib1.bibx2" id="paren.13"/>. <xref ref-type="bibr" rid="bib1.bibx61" id="text.14"/> and <xref ref-type="bibr" rid="bib1.bibx62" id="text.15"/> specifically evaluated and improved meteorological data from a weather prediction model serving as input to a snow cover model. While all studies agree that snowpack modeling has the potential to add value to avalanche forecasting, the understanding of under what circumstances and to what degree these models can add value (especially when coupled with weather prediction models) seems to be limited. This knowledge gap is a major hurdle to developing necessary trust for the operational use of these models.</p>
      <p id="d1e220">In Canada, the combination of numerical weather and snowpack models offers a tremendous opportunity for providing avalanche forecasters with useful information on snowpack conditions in otherwise data-spare regions <xref ref-type="bibr" rid="bib1.bibx54" id="paren.16"/>. However, the integration of physical snowpack models into operational avalanche forecasting has so far been limited. Informal conversations with forecasters highlight two main issues: (1) the overwhelming volume of data produced by the models and (2) validity concerns due to the cumulative impact of potentially inaccurate weather inputs. <xref ref-type="bibr" rid="bib1.bibx36" id="text.17"/> provide a more detailed discussion of the challenges around the operational use of snowpack models, which the authors classify into four main categories: issues of accessibility, interpretability, relevance, and integrity.</p>
      <p id="d1e229">Addressing data overload and validity concerns effectively requires the development of computer-based methods that can process large numbers of snow profiles. An algorithm for objectively assessing the similarity of simulated snow profiles is the necessary foundation for computationally emulating the snowpack data synthesis process of avalanche forecasters and meaningfully reducing the data volume to a manageable level. Furthermore, the ability to operationally compare simulated snow profiles against observed ones provides<?pagebreak page241?> an avenue for continuously monitoring the quality of the simulations and correcting them if necessary. To judge the operational value of snowpack models for avalanche forecasting, it is particularly important to focus on snowpack features and layer characteristics that are of direct relevance for avalanche hazard assessments. Since operational snowpack observations and relevant layer characteristics are expressed by variables (such as grain type and layer hardness) that are only indirectly diagnosed by models, the parameterization from prognostic variables introduces another layer of uncertainty. The evaluation of these models for practical purposes therefore needs to take all of these uncertainties into account.</p>
      <p id="d1e232">While numerical methods for comparing simulated snow profiles exist, they are unable to address the operational needs described above. To evaluate the performance of <sc>snowpack</sc>, <xref ref-type="bibr" rid="bib1.bibx27" id="text.18"/> developed an algorithm for comparing modeled profiles against manual observations. Since their approach is only concerned with finding manually observed layers in a specific depth range of the modeled profile, it is not suitable for subsequent clustering and aggregating. Moreover, their agreement score for snow profile pairs is focused on providing insight for model improvements, which has different similarity assessment needs than comparing snow profiles for avalanche hazard assessment purposes. <xref ref-type="bibr" rid="bib1.bibx13" id="text.19"/> and <xref ref-type="bibr" rid="bib1.bibx15" id="text.20"/>, as well as <xref ref-type="bibr" rid="bib1.bibx46" id="text.21"/>, introduced Dynamic Time Warping (DTW), a long-standing method from the fields of time series analysis and data mining, to the snow community. Both implemented a layer matching algorithm to align, cluster, and aggregate one-dimensional snow hardness (or density) profiles from field measurements and thereby demonstrated the usefulness of DTW for snow profile comparisons. Since its introduction, the layer matching algorithm by <xref ref-type="bibr" rid="bib1.bibx13" id="text.22"/> has been applied to evaluate snow penetrometers <xref ref-type="bibr" rid="bib1.bibx14" id="paren.23"/> or to characterize the spatial variability of the snow cover from ram resistance field measurements <xref ref-type="bibr" rid="bib1.bibx55" id="paren.24"/>. Consequently, their approach has focused on one-dimensional, continuous, numerical sequences and is not readily applicable to operational snowpack observations from avalanche forecasters.</p>
      <p id="d1e260">The objective of this study is to introduce an approach for computationally comparing, grouping, and summarizing generic snow profiles that consist of multidimensional, discrete sequences of categorical, numerical, and ordinal data types. To maximize the value for avalanche forecasting, our methods focus on structural elements in the profiles that are particularly important for avalanche hazard assessments and can handle both simulated profiles and manual observations with different levels of detail. We approach the task by numerically emulating the cognitive process of human forecasters. We first present a layer matching algorithm that aligns profiles in a way that a similarity measure can evaluate their agreement. We then exploit the resulting similarity score between pairs of snow profiles to cluster snow profiles into distinct groups and aggregate them into a representative profile. The derivation of the snow profile alignment algorithm and the similarity measure is presented in Sect. <xref ref-type="sec" rid="Ch1.S2"/>, whereas the new methods are valuated through practical aggregation and clustering applications as described in Sect. <xref ref-type="sec" rid="Ch1.S3"/>. We discuss the implications of our approach alongside its limitations and conclude with future perspectives in Sect. <xref ref-type="sec" rid="Ch1.S4"/>. We believe that the algorithms presented in this paper provide an important step for the development of operational data aggregation and validation algorithms that can make large-scale snowpack simulations more accessible and relevant for avalanche forecasters.</p>
</sec>
<sec id="Ch1.S2">
  <label>2</label><title>Derivation of the snow profile alignment algorithm and similarity measure</title>
      <p id="d1e277">In this section we describe how snow profiles can be aligned by matching layers between them (Sect. <xref ref-type="sec" rid="Ch1.S2.SS2"/>) and define a similarity measure to evaluate the agreement between aligned profiles (Sect. <xref ref-type="sec" rid="Ch1.S2.SS3"/>). Since both of these tasks require a method for assessing differences between individual snowpack layers, we start with that in Sect. <xref ref-type="sec" rid="Ch1.S2.SS1"/>.</p>
<sec id="Ch1.S2.SS1">
  <label>2.1</label><title>Assessing differences between individual snow layers</title>
      <p id="d1e293">To align snow profiles and determine their similarity overall, we need a method for assessing the similarity of individual layers. While snowpack models provide a wide range of layer properties, the most commonly used characteristics by practitioners are snow grain type, layer hardness, and burial date. To assess the similarity between individual layers that incorporate all three layer characteristics, we first define distance functions for these characteristics, which are normalized to the interval <inline-formula><mml:math id="M1" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> to make them comparable. A distance of 0 means that two layer characteristics are identical, whereas a distance of 1 represents complete dissimilarity.</p>
      <p id="d1e313">While grain types are computed by snow models based on parameterizations of snow metamorphism, and simulated burial date information can easily be derived from the simulated deposition date or age of the layer, layer hardness is only a diagnostic variable provided by the model <sc>snowpack</sc> but not Crocus. Therefore, the following distance functions are presented in light of <sc>snowpack</sc>, and the application to other snow model output may require some modifications.</p>
<sec id="Ch1.S2.SS1.SSS1">
  <label>2.1.1</label><title>Distance function for grain type</title>
      <p id="d1e329">The international classification for snow on the ground <xref ref-type="bibr" rid="bib1.bibx10" id="paren.25"/> organizes snow grain types (also known as grain shapes) into main grain type classes, which can in turn be broken down into more nuanced subclasses. The following grain types are typical in avalanche forecasting contexts: precipitation particles (PP), decomposing and fragmented particles (DF), round grains (RG), faceted crystals (FC) (including the subclass rounding facets, FCxr), surface and depth<?pagebreak page242?> hoar (SH and DH), and melt forms (MF) (including the subclass melt–freeze crusts, MFcr). New snow layers mostly consist of PP and DF; SH and DH are prototypical persistent weak layers, and MFcr layers often promote the faceting of adjacent grains, which weakens the interface <xref ref-type="bibr" rid="bib1.bibx22" id="paren.26"/>. FC, including FCxr, can also be considered persistent weak layers, even though not every faceted layer is a layer of concern according to common snow profile analysis techniques that consider combinations of grain type and grain size (amongst other properties) to identify structural weaknesses in the snowpack <xref ref-type="bibr" rid="bib1.bibx50" id="paren.27"/>. Following that concept, we use the term <italic>bulk layers</italic> for layers that constitute a large proportion of the snowpack without being structurally weak. While avalanche forecasters typically regard FC as indicative of weaker snowpack layers, simulated layers of FC tend to be associated with smaller faceted crystals and thicker layers that represent bulk layers rather than weak layers since <sc>snowpack</sc> classifies any faceted grain with a size greater than <inline-formula><mml:math id="M2" display="inline"><mml:mn mathvariant="normal">1.5</mml:mn></mml:math></inline-formula> mm as DH.</p>
      <p id="d1e355">Since grain type is a categorical variable, calculating distances between nonidentical grain types is nontrivial. Our approach builds on the original method developed by <xref ref-type="bibr" rid="bib1.bibx27" id="text.28"/>, who defined a matrix of normalized grain type similarities between all possible pairs of grain types based on the physics of their formation and metamorphosis. Their approach evaluates the modeled grain type stratigraphy to identify model deficiencies and offer insight for model improvements. By contrast, our focus is on matching layers between snow profiles and assessing their similarity for avalanche hazard assessments. For the layer matching task, the similarity between grain types should indeed be evaluated partly based on their formation processes but also on the knowledge of snowpack model quirks and differences between modeled and observed profiles. For assessing the similarity of profiles, however, the similarity between grain types should be evaluated based on their implications for the hazard conditions rather than their formation processes. Thus, to make the approach more suitable for aligning snow profiles and assessing their similarity, we adapt the grain type similarity matrix of <xref ref-type="bibr" rid="bib1.bibx27" id="text.29"/> for each of the two tasks separately (Table <xref ref-type="table" rid="Ch1.T1"/>a, b). The matrices contain values within <inline-formula><mml:math id="M3" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> that represent the similarity between two grain types <inline-formula><mml:math id="M4" display="inline"><mml:mrow><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M5" display="inline"><mml:mrow><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>. Values <inline-formula><mml:math id="M6" display="inline"><mml:mrow><mml:mo>&gt;</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn></mml:mrow></mml:math></inline-formula> indicate similarity, <inline-formula><mml:math id="M7" display="inline"><mml:mn mathvariant="normal">0.5</mml:mn></mml:math></inline-formula> implies indifference, and values <inline-formula><mml:math id="M8" display="inline"><mml:mrow><mml:mo>&lt;</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn></mml:mrow></mml:math></inline-formula> indicate dissimilarity. The similarity between two grain types can be converted into a distance function <inline-formula><mml:math id="M9" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>g</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> by subtracting the similarity from <inline-formula><mml:math id="M10" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula> (i.e., the similarity between identical grain types is <inline-formula><mml:math id="M11" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula>, and their distance is <inline-formula><mml:math id="M12" display="inline"><mml:mn mathvariant="normal">0</mml:mn></mml:math></inline-formula>) to make it comparable to the other distance functions for hardness and layer date. Table <xref ref-type="table" rid="Ch1.T1"/>a and b are modified from the grain type similarity matrix of <xref ref-type="bibr" rid="bib1.bibx27" id="text.30"/> in the following ways (i.e., cells  with italic font).</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T1" specific-use="star"><?xmltex \currentcnt{1}?><label>Table 1</label><caption><p id="d1e490">Similarities between snow grain types as used for the layer alignment of snow profiles <bold>(a)</bold> and as used for the similarity assessment between snow profiles <bold>(b)</bold>. Italic font represents modifications introduced by this publication, bold font highlights differences between the two tables <bold>(a)</bold> and <bold>(b)</bold>, and all other values are taken directly from <xref ref-type="bibr" rid="bib1.bibx27" id="text.31"/>.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="11">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:colspec colnum="6" colname="col6" align="right"/>
     <oasis:colspec colnum="7" colname="col7" align="right"/>
     <oasis:colspec colnum="8" colname="col8" align="right"/>
     <oasis:colspec colnum="9" colname="col9" align="right"/>
     <oasis:colspec colnum="10" colname="col10" align="right"/>
     <oasis:colspec colnum="11" colname="col11" align="right"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col8"><bold>(a)</bold> Grain type similarity (snow profile alignments) </oasis:entry>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"/>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">PP</oasis:entry>
         <oasis:entry colname="col3">DF</oasis:entry>
         <oasis:entry colname="col4">RG</oasis:entry>
         <oasis:entry colname="col5">FC</oasis:entry>
         <oasis:entry colname="col6">DH</oasis:entry>
         <oasis:entry colname="col7">SH</oasis:entry>
         <oasis:entry colname="col8">MF</oasis:entry>
         <oasis:entry colname="col9">FCxr</oasis:entry>
         <oasis:entry colname="col10">MFcr</oasis:entry>
         <oasis:entry colname="col11">na</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">PP</oasis:entry>
         <oasis:entry colname="col2">1.0</oasis:entry>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.6</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">DF</oasis:entry>
         <oasis:entry colname="col2">0.8</oasis:entry>
         <oasis:entry colname="col3">1.0</oasis:entry>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.6</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">RG</oasis:entry>
         <oasis:entry colname="col2">0.5</oasis:entry>
         <oasis:entry colname="col3">0.8</oasis:entry>
         <oasis:entry colname="col4">1.0</oasis:entry>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.6</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">FC</oasis:entry>
         <oasis:entry colname="col2">0.2</oasis:entry>
         <oasis:entry colname="col3">0.4</oasis:entry>
         <oasis:entry colname="col4">0.4</oasis:entry>
         <oasis:entry colname="col5">1.0</oasis:entry>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>0.5</italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">DH</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.1</oasis:entry>
         <oasis:entry colname="col5"><bold>0.8</bold></oasis:entry>
         <oasis:entry colname="col6">1.0</oasis:entry>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.4</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SH</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.0</oasis:entry>
         <oasis:entry colname="col5"><italic>
                      <bold>0.6</bold>
                    </italic></oasis:entry>
         <oasis:entry colname="col6"><italic>0.9</italic></oasis:entry>
         <oasis:entry colname="col7">1.0</oasis:entry>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.4</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MF</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.0</oasis:entry>
         <oasis:entry colname="col5">0.0</oasis:entry>
         <oasis:entry colname="col6">0.0</oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">1.0</oasis:entry>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>0.5</italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">FCxr</oasis:entry>
         <oasis:entry colname="col2">0.2</oasis:entry>
         <oasis:entry colname="col3">0.4</oasis:entry>
         <oasis:entry colname="col4">0.5</oasis:entry>
         <oasis:entry colname="col5"><bold>0.8</bold></oasis:entry>
         <oasis:entry colname="col6"><bold>0.7</bold></oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">0.0</oasis:entry>
         <oasis:entry colname="col9">1.0</oasis:entry>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.6</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">MFcr</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.0</oasis:entry>
         <oasis:entry colname="col5">0.0</oasis:entry>
         <oasis:entry colname="col6">0.0</oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">0.2</oasis:entry>
         <oasis:entry colname="col9">0.0</oasis:entry>
         <oasis:entry colname="col10">1.0</oasis:entry>
         <oasis:entry colname="col11"><italic>
                      <bold>0.4</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry namest="col1" nameend="col9"><bold>(b)</bold> Grain type similarity (snow profile similarity assessments) </oasis:entry>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"/>
       </oasis:row>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">PP</oasis:entry>
         <oasis:entry colname="col3">DF</oasis:entry>
         <oasis:entry colname="col4">RG</oasis:entry>
         <oasis:entry colname="col5">FC</oasis:entry>
         <oasis:entry colname="col6">DH</oasis:entry>
         <oasis:entry colname="col7">SH</oasis:entry>
         <oasis:entry colname="col8">MF</oasis:entry>
         <oasis:entry colname="col9">FCxr</oasis:entry>
         <oasis:entry colname="col10">MFcr</oasis:entry>
         <oasis:entry colname="col11">na</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">PP</oasis:entry>
         <oasis:entry colname="col2">1.0</oasis:entry>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">DF</oasis:entry>
         <oasis:entry colname="col2">0.8</oasis:entry>
         <oasis:entry colname="col3">1.0</oasis:entry>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">RG</oasis:entry>
         <oasis:entry colname="col2">0.5</oasis:entry>
         <oasis:entry colname="col3">0.8</oasis:entry>
         <oasis:entry colname="col4">1.0</oasis:entry>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">FC</oasis:entry>
         <oasis:entry colname="col2">0.2</oasis:entry>
         <oasis:entry colname="col3">0.4</oasis:entry>
         <oasis:entry colname="col4">0.4</oasis:entry>
         <oasis:entry colname="col5">1.0</oasis:entry>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>0.5</italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">DH</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.1</oasis:entry>
         <oasis:entry colname="col5"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
         <oasis:entry colname="col6">1.0</oasis:entry>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SH</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.0</oasis:entry>
         <oasis:entry colname="col5"><italic>
                      <bold>0.3</bold>
                    </italic></oasis:entry>
         <oasis:entry colname="col6"><italic>0.9</italic></oasis:entry>
         <oasis:entry colname="col7">1.0</oasis:entry>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MF</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.0</oasis:entry>
         <oasis:entry colname="col5">0.0</oasis:entry>
         <oasis:entry colname="col6">0.0</oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">1.0</oasis:entry>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>0.5</italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">FCxr</oasis:entry>
         <oasis:entry colname="col2">0.2</oasis:entry>
         <oasis:entry colname="col3">0.4</oasis:entry>
         <oasis:entry colname="col4">0.5</oasis:entry>
         <oasis:entry colname="col5"><italic>
                      <bold>0.6</bold>
                    </italic></oasis:entry>
         <oasis:entry colname="col6"><italic>
                      <bold>0.4</bold>
                    </italic></oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">0.0</oasis:entry>
         <oasis:entry colname="col9">1.0</oasis:entry>
         <oasis:entry colname="col10"/>
         <oasis:entry colname="col11"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MFcr</oasis:entry>
         <oasis:entry colname="col2">0.0</oasis:entry>
         <oasis:entry colname="col3">0.0</oasis:entry>
         <oasis:entry colname="col4">0.0</oasis:entry>
         <oasis:entry colname="col5">0.0</oasis:entry>
         <oasis:entry colname="col6">0.0</oasis:entry>
         <oasis:entry colname="col7">0.0</oasis:entry>
         <oasis:entry colname="col8">0.2</oasis:entry>
         <oasis:entry colname="col9">0.0</oasis:entry>
         <oasis:entry colname="col10">1.0</oasis:entry>
         <oasis:entry colname="col11"><italic>
                      <bold>0.5</bold>
                    </italic></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

      <p id="d1e1324"><list list-type="order">
              <list-item>

      <p id="d1e1329">SH and DH layers are formed by very different processes – by the deposition of hoar onto the snow surface versus by kinetic growth of crystals within the snowpack. Consequently, <xref ref-type="bibr" rid="bib1.bibx27" id="text.32"/> evaluated the similarity of the two grain types as completely dissimilar. However, both SH and DH represent hazardous weak layers and are of comparable importance in avalanche hazard assessments <xref ref-type="bibr" rid="bib1.bibx49" id="paren.33"/>. Furthermore, practical experience with the current version of <sc>snowpack</sc> shows that SH layers are often converted to DH layers once buried. To account for both of these aspects, we raised their similarity from <inline-formula><mml:math id="M13" display="inline"><mml:mn mathvariant="normal">0</mml:mn></mml:math></inline-formula> to <inline-formula><mml:math id="M14" display="inline"><mml:mn mathvariant="normal">0.9</mml:mn></mml:math></inline-formula> for both tasks (Table <xref ref-type="table" rid="Ch1.T1"/>a, b).</p>

      <p id="d1e1358">Following the same line of logic, we also raised the similarity between SH and FC, another common weak layer grain type. However, to acknowledge the enhanced seriousness of buried SH layers while simultaneously facilitating the weak layer matching, the similarity between SH and FC is higher when aligning snow profiles (Table <xref ref-type="table" rid="Ch1.T1"/>a) than when assessing their similarities (Table <xref ref-type="table" rid="Ch1.T1"/>b)</p>
              </list-item>
              <list-item>

      <p id="d1e1368">Since human profiles sometimes lack grain type information for certain layers, an automated alignment algorithm needs to be able to cope with missing data in a meaningful way. Since it is more common for bulk layers to have missing grain type information, it is more desirable to match unknown grain types to bulk layers than weak layers. We therefore expanded the similarity matrix of <xref ref-type="bibr" rid="bib1.bibx27" id="text.34"/> with an additional column for unknown grain types and filled it with values that are centered around indifference (i.e., 0.5) (Table <xref ref-type="table" rid="Ch1.T1"/>b) but with a slight preference towards bulk layers (Table <xref ref-type="table" rid="Ch1.T1"/>a).</p>
              </list-item>
              <list-item>

      <p id="d1e1381">While we acknowledge the physical similarity between DH, FC, and FCxr, we want to emphasize their slightly different implications for hazard conditions. We therefore classified DH layers – often representing buried SH layers or layers with large FC grains in simulated profiles – as first-order weak layers, whereas FC and FCxr were classified as second- and third-order weak layers, respectively. This hierarchy is implemented in Table <xref ref-type="table" rid="Ch1.T1"/>b: similarities DH–FC and DH–FCxr are equal to and slightly lower than <inline-formula><mml:math id="M15" display="inline"><mml:mn mathvariant="normal">0.5</mml:mn></mml:math></inline-formula>, respectively, and thus represent indifference or a slight mismatch; the similarity FC–FCxr is slightly greater than <inline-formula><mml:math id="M16" display="inline"><mml:mn mathvariant="normal">0.5</mml:mn></mml:math></inline-formula> and thus represents a weak match. These modifications lead to a pronounced distinction of the weak layer grains SH and DH from the less distinct weak layer grains FC and FCxr.</p>
              </list-item>
            </list></p>
</sec>
<sec id="Ch1.S2.SS1.SSS2">
  <label>2.1.2</label><title>Distance function for layer hardness</title>
      <p id="d1e1410">The second important layer characteristic to consider is hardness, which characterizes the resistance of snow to penetration. In operational field observations the layer hardness is expressed on an ordinal hand hardness scale <xref ref-type="bibr" rid="bib1.bibx10" id="paren.35"/>. Hardness observations are taken by gently pushing different objects into snow layers from a snow pit wall. The<?pagebreak page243?> hardness of a layer is expressed by the largest object that can be pushed into the snow layer with a consistent force of approximately 10–15 <inline-formula><mml:math id="M17" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">N</mml:mi></mml:mrow></mml:math></inline-formula>. The ordinal levels of the hand hardness index are fist (F), four fingers (4F), one finger (1F), pencil (P), knife blade (K), and ice (I). Subclassiﬁcations like <italic>4F+</italic>, <italic>4F–1F</italic>, and <italic>1F-</italic> are possible and refer to the descriptions “just harder than 4F”, “between 4F and 1F”, and “just softer than 1F”, respectively.</p>
      <p id="d1e1433">A translation of the ordinal index into a numerical scale is straightforward by assuming that “fist” equals a numerical value of <inline-formula><mml:math id="M18" display="inline"><mml:mn mathvariant="normal">0</mml:mn></mml:math></inline-formula>, “ice” equals <inline-formula><mml:math id="M19" display="inline"><mml:mn mathvariant="normal">6</mml:mn></mml:math></inline-formula>, and the ordinal levels are equidistant <xref ref-type="bibr" rid="bib1.bibx50" id="paren.36"/>. The normalized distance <inline-formula><mml:math id="M20" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> can then be written as <inline-formula><mml:math id="M21" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>|</mml:mo></mml:mrow><mml:mn mathvariant="normal">5</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="M22" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M23" display="inline"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> represent numerical translations of two hand hardness values and the normalization factor of <inline-formula><mml:math id="M24" display="inline"><mml:mn mathvariant="normal">5</mml:mn></mml:math></inline-formula> refers to the largest distance possible (F–I). Hence, only layers with a hardness difference of fist to ice are considered completely dissimilar, while all other hardness combinations exhibit some degree of similarity.</p>
</sec>
<sec id="Ch1.S2.SS1.SSS3">
  <label>2.1.3</label><title>Distance function for layer date</title>
      <p id="d1e1553">Snow layers are commonly labeled with either their deposition date (i.e., the date when a specific layer was formed) or their burial date (i.e., the date when a specific layer was buried). While snowpack models predominantly work with deposition dates, practitioners mainly use burial dates. One reason for practitioners’ preference for burial dates is the fact that layers can form over several days, which makes assigning a deposition date challenging. However, it is straightforward to derive the burial date of a simulated snowpack layer based on the deposition date of the overlying layer. Hence, layer dates of simulated snow profiles can easily be compared with layer dates recorded by practitioners.</p>
      <?pagebreak page244?><p id="d1e1556">The distance function <inline-formula><mml:math id="M25" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> between two dates <inline-formula><mml:math id="M26" display="inline"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M27" display="inline"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> becomes trivial as soon as the dates represent the same type of date (deposition or burial) and are converted into Julian dates: <inline-formula><mml:math id="M28" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>-</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>|</mml:mo></mml:mrow><mml:mi>c</mml:mi></mml:mfrac></mml:mstyle></mml:mrow></mml:math></inline-formula>. In this case, the normalization factor <inline-formula><mml:math id="M29" display="inline"><mml:mi>c</mml:mi></mml:math></inline-formula> determines the time lag when the dates are considered to be completely dissimilar. A normalization factor of <inline-formula><mml:math id="M30" display="inline"><mml:mrow><mml:mi>c</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">5</mml:mn></mml:mrow></mml:math></inline-formula>, for example, means that date differences from 0 d to 4 d become increasingly dissimilar (i.e., <inline-formula><mml:math id="M31" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>∈</mml:mo><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>), whereas date differences equal to or greater than 5 d are considered completely dissimilar (i.e., <inline-formula><mml:math id="M32" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>≥</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>; <inline-formula><mml:math id="M33" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> typically does not exceed <inline-formula><mml:math id="M34" display="inline"><mml:mn mathvariant="normal">2</mml:mn></mml:math></inline-formula>, but the exact limit depends on <inline-formula><mml:math id="M35" display="inline"><mml:mi>c</mml:mi></mml:math></inline-formula> and the length of the season or the size of the DTW window constraint). A normalization factor of <inline-formula><mml:math id="M36" display="inline"><mml:mrow><mml:mi>c</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula> means that only identical dates are considered to have any similarity. Hence, <inline-formula><mml:math id="M37" display="inline"><mml:mi>c</mml:mi></mml:math></inline-formula> can be used to account for small deviations in reported burial dates and in short time lags of weather patterns across geographic regions. In cases when layer dates are not available for one or both layers, the distance <inline-formula><mml:math id="M38" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> defaults to indifference (i.e., <inline-formula><mml:math id="M39" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn></mml:mrow></mml:math></inline-formula>). This makes it possible to label only important layers with their date.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS2">
  <label>2.2</label><title>Aligning snow profiles with Dynamic Time Warping</title>
      <p id="d1e1781">In this section, we present a numerical algorithm that addresses the challenge of matching corresponding layers in snow profiles. Our method is based on Dynamic Time Warping (DTW), a long-standing algorithm, which was originally designed for speech recognition in the 1970s <xref ref-type="bibr" rid="bib1.bibx43 bib1.bibx42 bib1.bibx44" id="paren.37"/>. Soon thereafter it was adopted in time series analyses <xref ref-type="bibr" rid="bib1.bibx5" id="paren.38"><named-content content-type="pre">e.g.,</named-content></xref>, and it remains a state-of-the-art component in data-mining methods such as clustering and classification (e.g., <xref ref-type="bibr" rid="bib1.bibx23 bib1.bibx38 bib1.bibx63 bib1.bibx37" id="altparen.39"/>). Our discussion of DTW starts with a general background section, which is followed by four sections that explain our application of DTW to snow profiles in more detail. This includes snow profile preprocessing steps and inputs to the DTW algorithm. We then discuss suitable DTW parameter choices for snow profile alignments and make recommendations on how to use the alignment algorithm.</p>
<sec id="Ch1.S2.SS2.SSS1">
  <label>2.2.1</label><title>Background on Dynamic Time Warping</title>
      <p id="d1e1802">The following brief summary of DTW is based on <xref ref-type="bibr" rid="bib1.bibx44" id="text.40"/>, <xref ref-type="bibr" rid="bib1.bibx40" id="text.41"/>, <xref ref-type="bibr" rid="bib1.bibx23" id="text.42"/>, and <xref ref-type="bibr" rid="bib1.bibx12" id="text.43"/>.</p>
      <p id="d1e1817">DTW is an elastic distance measure for time series or, more generally, sequences that calculates the dissimilarity between two sequences while allowing for distortions in “time”. The distortions are accommodated by mapping each element of one sequence to one or many elements of the other sequence (Fig. <xref ref-type="fig" rid="Ch1.F1"/>a). Once mapped, the dissimilarities between each of the matched sequence elements can be computed and combined into one single distance value that quantifies the dissimilarity between the two sequences.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F1" specific-use="star"><?xmltex \currentcnt{1}?><label>Figure 1</label><caption><p id="d1e1824">Illustrative example of the DTW alignment of two sine wave sequences. <bold>(a)</bold> Each element of the first sequence is mapped to one or many elements of the second sequence; the corresponding sequence elements can be found by <bold>(b)</bold> the (warping) path of least resistance through a local cost matrix that stores the distances between every possible pair of sequence elements.</p></caption>
            <?xmltex \igopts{width=412.564961pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021-f01.png"/>

          </fig>

      <p id="d1e1840">To link corresponding sequence elements, a local cost matrix <bold>D</bold>  is calculated that stores the distances between every possible pair of sequence elements. Hence, the dimensions of <bold>D</bold> are the lengths of the two sequences. Then, the best alignment of the two sequences is represented by the path of least resistance through <bold>D</bold>, which is referred to as the optimal warping path <inline-formula><mml:math id="M40" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> (Fig. <xref ref-type="fig" rid="Ch1.F1"/>b). To ensure meaningful matching between sequence elements, the warping path is subject to the following constraints.</p>
      <p id="d1e1861"><def-list>
              <def-item><term>Monotonicity and continuity.</term><def>

      <p id="d1e1869">Subsequent elements of the warping path are contiguous in the sense that they are horizontally, vertically, or diagonally adjacent cells of the local cost matrix <bold>D</bold>, while “going back (in time)” is not allowed.</p>
              </def></def-item>
              <def-item><term>Warping window.</term><def>

      <p id="d1e1881">It is common practice to restrict the search for the optimal warping path to the bounds of a warping window around the main diagonal of the local cost matrix <bold>D</bold>. The main diagonal represents the lock-step alignment of the two sequences, whereby the <inline-formula><mml:math id="M41" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula>th element of the first sequence is mapped onto the <inline-formula><mml:math id="M42" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula>th element of the second sequence. Thus, the farther the warping path deviates from the main diagonal, the more extreme the warping gets, and sequence elements that are farther apart from each other are matched. The shape and size of the optimal warping window changes with the domain and the target data set. Popular choices include a slanted band of constant width (Sakoe–Chiba band) or a parallelogram between the sequences' start and end points (Itakura parallelogram). For detailed visualizations see <xref ref-type="bibr" rid="bib1.bibx41" id="text.44"/>. DTW with a constrained warping window is commonly referred to as constrained Dynamic Time Warping (cDTW).</p>
              </def></def-item>
              <def-item><term>Local slope constraint.</term><def>

      <p id="d1e1910">While the warping window constrains the envelope of the warping path globally, the so-called local slope constraint of the warping path ensures reasonable warping locally. More specifically, the local slope constraint controls how many subsequent elements of one sequence can be mapped onto one element of the other sequence. That is an important control because it regulates how much stretching and compressing of individual sequence elements is allowed. For time series, that means stretching and compressing with respect to time; in the case of snow profiles, it refers to the stretching and compressing of snow layer thicknesses.</p>

      <p id="d1e1913">Many different local slope constraints have been suggested in the literature. As an illustration, in Fig. <xref ref-type="fig" rid="Ch1.F1"/>, we use a nonrestrictive local slope constraint, which allows arbitrarily many elements to be mapped onto one corresponding element. In this case, the first element of Sequence 2 is mapped onto almost 20 elements of Sequence 1 (Fig. <xref ref-type="fig" rid="Ch1.F1"/>a), which requires a vertical start slope of the warping path (Fig. <xref ref-type="fig" rid="Ch1.F1"/>b). Find an explicit illustration of the nonrestrictive local slope constraint in Fig. <xref ref-type="fig" rid="App1.Ch1.S2.F7"/>a.</p>
              </def></def-item>
              <def-item><term>Boundary conditions.</term><def>

      <?pagebreak page245?><p id="d1e1930">For a global alignment, both the sequences' start and end points need to be elements of the warping path (Fig. <xref ref-type="fig" rid="Ch1.F1"/>b). Partial alignments can be computed by relaxing one or both of these constraints. This results in three different options: alignments for which the start but not the end points are matched (open-end alignment), alignments for which the end but not the start points are matched (open-begin alignment), or alignments for which subsequences of the two sequences that include neither the start or end points are matched. Further details on partial DTW matching can be found in Appendix <xref ref-type="sec" rid="App1.Ch1.S1"/> and in the review by <xref ref-type="bibr" rid="bib1.bibx56" id="text.45"/>.</p>
              </def></def-item>
            </def-list></p>
      <p id="d1e1942">While there are many potential warping paths through the local cost matrix <bold>D</bold> that satisfy these constraints, the objective is to find the optimal warping path <inline-formula><mml:math id="M43" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> that accumulates the least cost while stepping through <bold>D</bold>. This is an optimization problem that can be solved by dynamic programming. We refer the interested reader to Appendix <xref ref-type="sec" rid="App1.Ch1.S1"/> for more details.</p>
</sec>
<sec id="Ch1.S2.SS2.SSS2">
  <label>2.2.2</label><title>Preprocessing of snow profiles: uniform scaling and resampling</title>
      <?pagebreak page246?><p id="d1e1968">The specific nature of snow profile data requires some preprocessing before DTW can be applied in a meaningful way. Variabilities in snowpack structures can be divided into systematic differences due to systematic variations in the meteorological forcing (e.g., location: a wind-scoured ridgeline next to a wind-loaded slope; elevation: increase in snowfall amounts with elevation) and random differences due to natural variations in the meteorological forcing (e.g., peculiar patterns of individual storms, small-scale variations) <xref ref-type="bibr" rid="bib1.bibx52" id="paren.46"/>. The former can result in substantial differences in the snow profiles due to accumulation of different forcings over time. (See Sect. S1 in the Supplement for more details and visualizations of idealized stratigraphic snowpack variability.) While the DTW algorithm is well suited to deal with random differences, it was not designed to cope with systematic differences. Since systematic differences are common in snow profiles, it is necessary to preprocess them for a meaningful application of DTW. <xref ref-type="bibr" rid="bib1.bibx11" id="text.47"/> suggest uniform scaling, another optimization technique that minimizes systematic differences by determining an optimal global scaling factor. For efficiency reasons, we simply scale the snow profiles to identical snow heights instead. We thereby assume that the offset corresponds to approximately the magnitude of the systematic differences and that the rescaled profiles are predominantly characterized by random differences that can be handled by DTW.  A tentative evaluation of this assumption can be found in the Supplement  (Sect. S2.2).
<?xmltex \hack{\newpage}?></p>
      <p id="d1e1978">Once the profiles have been rescaled, each of the two profiles consists of a series of discrete layers along an irregular height grid. To equalize the two different height grids, we resample the profiles onto a regular grid with a constant sampling rate, which represents the final resolution for the alignment procedure. While our algorithm allows users to flexibly set the sampling rate, a resolution of about half a centimeter ensures that typically thin, hazardous weak layers are being captured. Hence, the snow profiles included in the examples in this paper were resampled to <inline-formula><mml:math id="M44" display="inline"><mml:mn mathvariant="normal">0.5</mml:mn></mml:math></inline-formula> <inline-formula><mml:math id="M45" display="inline"><mml:mrow class="unit"><mml:mi mathvariant="normal">cm</mml:mi></mml:mrow></mml:math></inline-formula>. To preserve the discrete layer character of each profile, we do <italic>not</italic> interpolate between the grid points during the resampling process.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F2" specific-use="star"><?xmltex \currentcnt{2}?><label>Figure 2</label><caption><p id="d1e2001">Visualization of a local cost matrix <bold>D</bold>, which stores the distance between individual layers of two snow profiles <inline-formula><mml:math id="M46" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M47" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula>; <inline-formula><mml:math id="M48" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M49" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> contain the layer characteristics of grain type <inline-formula><mml:math id="M50" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>g</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M51" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">r</mml:mi><mml:mi>g</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula>, as well as hardness <inline-formula><mml:math id="M52" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>h</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M53" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">r</mml:mi><mml:mi>h</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula>. <bold>D</bold> is only filled with values around its diagonal; the rest is clipped by a warping window and a local slope constraint. The back line represents the optimal warping path <inline-formula><mml:math id="M54" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula>, which accumulates the least cost while stepping through <bold>D</bold> and which defines the alignment of the two profiles; the preferential layer matching implementation becomes apparent in the yellow and orange cells, which represent smaller than average distances and will thus be matched more easily. See the text for further explanation.</p></caption>
            <?xmltex \igopts{width=341.433071pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021-f02.png"/>

          </fig>

</sec>
<sec id="Ch1.S2.SS2.SSS3">
  <label>2.2.3</label><title>Computing a weighted local cost matrix from multiple layer characteristics</title>
      <p id="d1e2108">Section <xref ref-type="sec" rid="Ch1.S2.SS2.SSS1"/> introduced how DTW exploits the local cost matrix <bold>D</bold> to find the best alignment of two sequences. We will now show how to compute this local cost matrix for snow profiles. The following presentation therefore focuses on the layer characteristics of categorical grain type, ordinal layer hardness, and numerical layer date, which are the layer characteristics most commonly recorded by practitioners. Note, however, that the layer date contribution can be omitted if the information is not available, and our algorithm can easily be expanded to include other layer properties.</p>
      <p id="d1e2116">First, we combine the distances of the individual layer characteristics (defined in  Sect. <xref ref-type="sec" rid="Ch1.S2.SS1"/>) into one scalar distance by weighted averaging. The resulting scalar distance fills one cell of the local cost matrix <bold>D</bold> and thus controls how the alignment algorithm matches the corresponding layers in the snow profiles.</p>
      <p id="d1e2124">Second, we use a weighting scheme for preferential layer matching (Fig. <xref ref-type="fig" rid="Ch1.F2"/>) to ensure that the algorithm prioritizes the alignment of snowpack features that are relevant for avalanche hazard assessment when calculating the scalar distance. The intent of the weighting scheme is to create anchor points for key layers by artificially introducing penalties for non-key layers. This is especially advantageous when no date information is available. Similar to our approach with the distance function for grain types, we focus on avalanche hazard assessment priorities and try to emulate a human alignment approach. First and second priority should be given to the alignment of first-order persistent weak layers (SH and DH) and crusts. Third priority should be given to the alignment of faceted grain types with first-order persistent weak layers. This cascade of priorities is expressed numerically by the relative differences of the weighting coefficients <inline-formula><mml:math id="M55" display="inline"><mml:mi mathvariant="italic">ν</mml:mi></mml:math></inline-formula> presented in Table <xref ref-type="table" rid="Ch1.T2"/>. We determined these values experimentally by testing numerous snow profile alignments and found that they yield the wanted result without any unwanted side effects.</p>
      <p id="d1e2138">To compute <bold>D</bold> from two generic snow profiles, we introduce the following notation. <inline-formula><mml:math id="M56" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M57" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> are two rescaled and resampled snow profiles with <inline-formula><mml:math id="M58" display="inline"><mml:mi>I</mml:mi></mml:math></inline-formula> number of layers – typically on the order of hundreds of layers, depending on the sampling rate and the time of the season. The indices <inline-formula><mml:math id="M59" display="inline"><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mi>I</mml:mi></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M60" display="inline"><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mi>I</mml:mi></mml:mrow></mml:math></inline-formula> refer to these layers. Each layer of the snow profiles <inline-formula><mml:math id="M61" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M62" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> contains information about the grain type, the hardness, the burial date, and the vertical position of the layer in the profile (i.e., height or depth). Those characteristics are denoted by <inline-formula><mml:math id="M63" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>g</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M64" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">r</mml:mi><mml:mi>g</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> for grain type, <inline-formula><mml:math id="M65" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>h</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M66" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">r</mml:mi><mml:mi>h</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> for hardness, and <inline-formula><mml:math id="M67" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>t</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M68" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">r</mml:mi><mml:mi>t</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> for date (see Table <xref ref-type="table" rid="Ch1.T3"/> for an example). Each element <inline-formula><mml:math id="M69" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> of the local cost matrix <bold>D</bold> can then be written as
              <disp-formula id="Ch1.E1" content-type="numbered"><label>1</label><mml:math id="M70" display="block"><mml:mrow><?xmltex \hack{\hbox\bgroup\fontsize{8.5}{8.5}\selectfont$\displaystyle}?><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi>g</mml:mi></mml:msub><mml:msub><mml:mi>d</mml:mi><mml:mi>g</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>g</mml:mi></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mi>j</mml:mi><mml:mi>g</mml:mi></mml:msubsup><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:msub><mml:mi>d</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>h</mml:mi></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mi>j</mml:mi><mml:mi>h</mml:mi></mml:msubsup><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>(</mml:mo><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>t</mml:mi></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mi>j</mml:mi><mml:mi>t</mml:mi></mml:msubsup><mml:mo>)</mml:mo><mml:mo>+</mml:mo><mml:mi mathvariant="italic">ν</mml:mi><mml:mo>(</mml:mo><mml:msubsup><mml:mi>q</mml:mi><mml:mi>i</mml:mi><mml:mi>g</mml:mi></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mi>j</mml:mi><mml:mi>g</mml:mi></mml:msubsup><mml:mo>)</mml:mo><mml:mo>,</mml:mo><?xmltex \hack{$\egroup}?></mml:mrow></mml:math></disp-formula>
            where <inline-formula><mml:math id="M71" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M72" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M73" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are averaging weights that sum up to <inline-formula><mml:math id="M74" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula> (<inline-formula><mml:math id="M75" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>g</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>). Those weights need to be estimated (see Supplement Sect. S2.1), but specific values are recommended in Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS5"/>. Since <inline-formula><mml:math id="M76" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M77" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> range within <inline-formula><mml:math id="M78" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M79" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> typically within <inline-formula><mml:math id="M80" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, and <inline-formula><mml:math id="M81" display="inline"><mml:mi mathvariant="italic">ν</mml:mi></mml:math></inline-formula> within <inline-formula><mml:math id="M82" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">5</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, the distance <inline-formula><mml:math id="M83" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> typically ranges within <inline-formula><mml:math id="M84" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mn mathvariant="normal">7</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>, where a distance of <inline-formula><mml:math id="M85" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow></mml:math></inline-formula> refers to the two layers being identical. Note that in Eq. (<xref ref-type="disp-formula" rid="Ch1.E1"/>) <inline-formula><mml:math id="M86" display="inline"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> is calculated based on the similarity matrix in Table <xref ref-type="table" rid="Ch1.T1"/>a, which is geared towards snow profile alignments. Figure <xref ref-type="fig" rid="Ch1.F2"/> visualizes a local cost matrix derived from two generic snow profiles.</p>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T2"><?xmltex \currentcnt{2}?><label>Table 2</label><caption><p id="d1e2679">Weighting scheme for preferential layer matching; the preferential layer matching coefficient <inline-formula><mml:math id="M87" display="inline"><mml:mrow><mml:mi mathvariant="italic">ν</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> depends on the combination of two grain types <inline-formula><mml:math id="M88" display="inline"><mml:mrow><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">1</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M89" display="inline"><mml:mrow><mml:msub><mml:mi>g</mml:mi><mml:mn mathvariant="normal">2</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>; the smaller the coefficient, the more preferably the grain type combinations are matched (bold font). Values in the upper triangle are symmetric to values in the lower triangle.</p></caption><oasis:table frame="topbot"><?xmltex \begin{scaleboxenv}{.9}[.9]?><oasis:tgroup cols="10">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="right"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:colspec colnum="6" colname="col6" align="right"/>
     <oasis:colspec colnum="7" colname="col7" align="right"/>
     <oasis:colspec colnum="8" colname="col8" align="right"/>
     <oasis:colspec colnum="9" colname="col9" align="right"/>
     <oasis:colspec colnum="10" colname="col10" align="right"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2">PP</oasis:entry>
         <oasis:entry colname="col3">DF</oasis:entry>
         <oasis:entry colname="col4">RG</oasis:entry>
         <oasis:entry colname="col5">FC</oasis:entry>
         <oasis:entry colname="col6">DH</oasis:entry>
         <oasis:entry colname="col7">SH</oasis:entry>
         <oasis:entry colname="col8">MF</oasis:entry>
         <oasis:entry colname="col9">FCxr</oasis:entry>
         <oasis:entry colname="col10">MFcr</oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">PP</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3"/>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">DF</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">RG</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4">5</oasis:entry>
         <oasis:entry colname="col5"/>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">FC</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4">5</oasis:entry>
         <oasis:entry colname="col5">5</oasis:entry>
         <oasis:entry colname="col6"/>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">DH</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4">5</oasis:entry>
         <oasis:entry colname="col5"><bold>4.5</bold></oasis:entry>
         <oasis:entry colname="col6"><bold>0</bold></oasis:entry>
         <oasis:entry colname="col7"/>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">SH</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4">5</oasis:entry>
         <oasis:entry colname="col5"><bold>4.5</bold></oasis:entry>
         <oasis:entry colname="col6"><bold>0</bold></oasis:entry>
         <oasis:entry colname="col7"><bold>0</bold></oasis:entry>
         <oasis:entry colname="col8"/>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MF</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4">5</oasis:entry>
         <oasis:entry colname="col5">5</oasis:entry>
         <oasis:entry colname="col6">5</oasis:entry>
         <oasis:entry colname="col7">5</oasis:entry>
         <oasis:entry colname="col8">5</oasis:entry>
         <oasis:entry colname="col9"/>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">FCxr</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4">5</oasis:entry>
         <oasis:entry colname="col5">5</oasis:entry>
         <oasis:entry colname="col6">5</oasis:entry>
         <oasis:entry colname="col7">5</oasis:entry>
         <oasis:entry colname="col8">5</oasis:entry>
         <oasis:entry colname="col9">5</oasis:entry>
         <oasis:entry colname="col10"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">MFcr</oasis:entry>
         <oasis:entry colname="col2">5</oasis:entry>
         <oasis:entry colname="col3">5</oasis:entry>
         <oasis:entry colname="col4">5</oasis:entry>
         <oasis:entry colname="col5">5</oasis:entry>
         <oasis:entry colname="col6">5</oasis:entry>
         <oasis:entry colname="col7">5</oasis:entry>
         <oasis:entry colname="col8">5</oasis:entry>
         <oasis:entry colname="col9">5</oasis:entry>
         <oasis:entry colname="col10"><bold>2.5</bold></oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup><?xmltex \end{scaleboxenv}?></oasis:table></table-wrap>

<?xmltex \floatpos{t}?><table-wrap id="Ch1.T3"><?xmltex \currentcnt{3}?><label>Table 3</label><caption><p id="d1e3074">An illustrative example of a resampled snow profile <inline-formula><mml:math id="M90" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> that contains information about the vertical position of the profile layers (at their top interfaces), the grain types <inline-formula><mml:math id="M91" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>g</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula>, the hardnesses <inline-formula><mml:math id="M92" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>h</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula>, and the (burial) dates <inline-formula><mml:math id="M93" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>t</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula>.</p></caption><oasis:table frame="topbot"><oasis:tgroup cols="5">
     <oasis:colspec colnum="1" colname="col1" align="left"/>
     <oasis:colspec colnum="2" colname="col2" align="right"/>
     <oasis:colspec colnum="3" colname="col3" align="left"/>
     <oasis:colspec colnum="4" colname="col4" align="right"/>
     <oasis:colspec colnum="5" colname="col5" align="right"/>
     <oasis:thead>
       <oasis:row rowsep="1">
         <oasis:entry colname="col1">Height (cm)</oasis:entry>
         <oasis:entry colname="col2"><inline-formula><mml:math id="M94" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M95" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>g</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"><inline-formula><mml:math id="M96" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>h</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col5"><inline-formula><mml:math id="M97" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mi>t</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula></oasis:entry>
       </oasis:row>
     </oasis:thead>
     <oasis:tbody>
       <oasis:row>
         <oasis:entry colname="col1">0.5</oasis:entry>
         <oasis:entry colname="col2">1</oasis:entry>
         <oasis:entry colname="col3">DH</oasis:entry>
         <oasis:entry colname="col4">1.0</oasis:entry>
         <oasis:entry colname="col5">2018-12-15</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">1.0</oasis:entry>
         <oasis:entry colname="col2">2</oasis:entry>
         <oasis:entry colname="col3">DH</oasis:entry>
         <oasis:entry colname="col4">1.0</oasis:entry>
         <oasis:entry colname="col5">2018-12-15</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1"/>
         <oasis:entry colname="col2"/>
         <oasis:entry colname="col3"><inline-formula><mml:math id="M98" display="inline"><mml:mi mathvariant="normal">⋮</mml:mi></mml:math></inline-formula></oasis:entry>
         <oasis:entry colname="col4"/>
         <oasis:entry colname="col5"/>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">119.5</oasis:entry>
         <oasis:entry colname="col2">239</oasis:entry>
         <oasis:entry colname="col3">DF</oasis:entry>
         <oasis:entry colname="col4">2.25</oasis:entry>
         <oasis:entry colname="col5">–</oasis:entry>
       </oasis:row>
       <oasis:row>
         <oasis:entry colname="col1">120.0</oasis:entry>
         <oasis:entry colname="col2">240</oasis:entry>
         <oasis:entry colname="col3">PP</oasis:entry>
         <oasis:entry colname="col4">1.5</oasis:entry>
         <oasis:entry colname="col5">–</oasis:entry>
       </oasis:row>
     </oasis:tbody>
   </oasis:tgroup></oasis:table></table-wrap>

</sec>
<?pagebreak page247?><sec id="Ch1.S2.SS2.SSS4">
  <label>2.2.4</label><title>Obtaining the optimal alignment of the snow profiles</title>
      <p id="d1e3289">After calculating the local cost matrix <bold>D</bold>, there are several constraints on the warping path that need to be specified to tailor DTW to snow profile alignments; those constraints are the warping window, the local slope constraint, and the boundary conditions.</p>
      <p id="d1e3295"><def-list>
              <def-item><term>Warping window.</term><def>

      <p id="d1e3303">We use a slanted band of constant width around the main diagonal of <bold>D</bold> to constrain the warping path. This so-called Sakoe–Chiba band is quantified by the window size <inline-formula><mml:math id="M99" display="inline"><mml:mi mathvariant="italic">ε</mml:mi></mml:math></inline-formula>. See Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS5"/> for a recommendation on which value of <inline-formula><mml:math id="M100" display="inline"><mml:mi mathvariant="italic">ε</mml:mi></mml:math></inline-formula> to use for snow profile alignments.</p>
              </def></def-item>
              <def-item><term>Local slope constraint.</term><def>

      <p id="d1e3331">We require the local slope constraint to prevent excessive stretching or compressing of the snow layers in either of the two profiles. The symmetric Sakoe–Chiba local slope constraints <xref ref-type="bibr" rid="bib1.bibx44" id="paren.48"/> do exactly that: they limit the amount of stretching or compressing to a specific factor, which is identical for both profiles. We chose a factor that limits the amount of stretching to double the layer thickness and the compression to half the layer thickness. On the technical level, that means that while stepping through <bold>D</bold>, a horizontal or vertical step is only allowed if following a diagonal step (Figs. <xref ref-type="fig" rid="App1.Ch1.S1.F6"/>, <xref ref-type="fig" rid="App1.Ch1.S2.F7"/>). The specific local slope constraint we refer to has been termed by <xref ref-type="bibr" rid="bib1.bibx44" id="text.49"/> as symmetric (<inline-formula><mml:math id="M101" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>).</p>

      <p id="d1e3360">Note that the local slope constraint results in a funnel-shaped restriction of the warping window close to the starting point of the alignment, which is more restrictive than the slanted band window (Fig. <xref ref-type="fig" rid="Ch1.F2"/>). See Appendix <xref ref-type="sec" rid="App1.Ch1.S1"/> for a more detailed explanation.</p>
              </def></def-item>
              <def-item><term>Boundary conditions.</term><def>

      <p id="d1e3373">In cases when defining features of the snowpack at the very bottom or top only exist in<?pagebreak page248?> one of the two profiles (e.g., lack of an early-season snowfall event or missing of the most recent storm at one of the two profile locations), partial snow profile alignments are more suitable than global alignments. In those situations the alignment benefits from relaxing the boundary conditions to accommodate those partial alignments (Figs. <xref ref-type="fig" rid="Ch1.F2"/> and <xref ref-type="fig" rid="Ch1.F3"/>). We therefore implement symmetric open-end alignments, whereby an entire profile is mapped onto the other profile with the start points matched but the end points not.</p>

      <p id="d1e3380">Since open-begin alignments cannot be calculated with our chosen local slope constraint <xref ref-type="bibr" rid="bib1.bibx56" id="paren.50"/>, we developed a work-around by aligning snow profiles both bottom-up and top-down. The top-down alignment can be calculated straightforwardly by reversing both profiles and rerunning the DTW algorithm. However, since the DTW distance (Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS1"/>, Appendix <xref ref-type="sec" rid="App1.Ch1.S1"/>) cannot be used to effectively identify the better alignment of the two, we use our independent, more nuanced similarity measure of snow profiles (addressed in Sect. <xref ref-type="sec" rid="Ch1.S2.SS3"/>) to assess the quality of the alignment.</p>
              </def></def-item>
            </def-list></p>
      <p id="d1e3394">Finding the optimal warping path <inline-formula><mml:math id="M102" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> implies matching the corresponding layers between the two profiles <inline-formula><mml:math id="M103" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M104" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula>. That in turn allows warping one profile onto the other one by optimally stretching and compressing its individual layer thicknesses so that the warped profile is optimally aligned with the other profile. For example, warping profile <inline-formula><mml:math id="M105" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> onto profile <inline-formula><mml:math id="M106" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> produces the warped profile <inline-formula><mml:math id="M107" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, which contains the same layer sequences as profile <inline-formula><mml:math id="M108" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula>, but the adjusted layer thicknesses have aligned <inline-formula><mml:math id="M109" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> to the corresponding layers of <inline-formula><mml:math id="M110" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> (Fig. <xref ref-type="fig" rid="Ch1.F3"/>). The optimally aligned profiles <inline-formula><mml:math id="M111" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M112" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can now be used as input to an independent similarity measure.</p><?xmltex \hack{\newpage}?>
</sec>
<sec id="Ch1.S2.SS2.SSS5">
  <label>2.2.5</label><title>Application cases and usage recommendations</title>
      <p id="d1e3499">There are two main application cases for the snow profile alignment algorithm: (i) aligning snow profiles from different locations (or sources) but at the same points in time and (ii) aligning snow profiles from the same location at different points in time.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F3" specific-use="star"><?xmltex \currentcnt{3}?><label>Figure 3</label><caption><p id="d1e3504">The open-begin alignment of two snow profiles <inline-formula><mml:math id="M113" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M114" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula>: the line segments match the corresponding layers between <inline-formula><mml:math id="M115" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M116" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula>. Adjusting the layer thicknesses of profile <inline-formula><mml:math id="M117" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> yields the warped profile <inline-formula><mml:math id="M118" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, which is optimally aligned to profile <inline-formula><mml:math id="M119" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula>.</p></caption>
            <?xmltex \igopts{width=412.564961pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021-f03.png"/>

          </fig>

      <p id="d1e3567">In the first case, we recommend using open-end alignments when the optimal alignment of all individual layers is required – e.g., in applications that compare individual layers or in clustering applications that search for regions with similar snowpack conditions. We recommend using global alignments when modeled profiles are evaluated versus human profiles: even though open-end alignments might yield better alignment results, the explicit mismatch of layers at the very bottom or top of the profiles represents an important element of the model evaluation. Furthermore, keep in mind that open-end alignments increase the scope of the alignment algorithm, which can sometimes lead to surprising layer matches if the algorithm is used unsupervised.</p>
      <p id="d1e3571">In the second case, aligning profiles from the same location at different points in time (i.e., layer tracking), one of the two profiles typically has more layers and a higher snow depth. Since the smaller profile should be contained in the taller profile in a similar form, the alignment needs to be open-end and bottom-up. Furthermore, it is not necessary to rescale the profiles as recommended in Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS2"/> but only to resample them. In this case, rescaling actually moves corresponding layers farther apart, which would have to be compensated for by increasing the window size <inline-formula><mml:math id="M120" display="inline"><mml:mi mathvariant="italic">ε</mml:mi></mml:math></inline-formula>. To increase your control on which parts of the profiles are matched, we recommend that you label some of the key layers with their date information.</p>
      <p id="d1e3583">In the Supplement (Sect. S2), we derive the optimal values for the averaging weights <inline-formula><mml:math id="M121" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>g</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M122" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, as well as the window size <inline-formula><mml:math id="M123" display="inline"><mml:mi mathvariant="italic">ε</mml:mi></mml:math></inline-formula>, with a series of simulation experiments. Based on the results of these experiments, we recommend using the following default settings: <inline-formula><mml:math id="M124" display="inline"><mml:mrow><mml:mi mathvariant="italic">ε</mml:mi><mml:mo>≈</mml:mo><mml:mn mathvariant="normal">0.3</mml:mn></mml:mrow></mml:math></inline-formula> in conjunction with a bottom-up/top-down approach<fn id="Ch1.Footn2"><p id="d1e3627">Note that this value is much higher than typically recommended in the literature <xref ref-type="bibr" rid="bib1.bibx41" id="paren.51"/>.</p></fn> and a ratio of <inline-formula><mml:math id="M125" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>/</mml:mo><mml:msub><mml:mi>w</mml:mi><mml:mi>g</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">4</mml:mn></mml:mrow></mml:math></inline-formula>. The value of <inline-formula><mml:math id="M126" display="inline"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>d</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> depends heavily on how similar the meteorological processes are that shape the snowpack at the two locations; e.g., two profiles from the same elevation and the same aspect that are in close proximity can be aligned based on layer date alone. However, two profiles from opposite aspects and different elevation bands may be aligned predominantly based on grain type and hardness.</p>
</sec>
</sec>
<sec id="Ch1.S2.SS3">
  <label>2.3</label><title>Assessing the similarity of snow profiles</title>
      <?pagebreak page249?><p id="d1e3681">A measure that quantifies the similarity of snow profiles as a whole is best designed independently from a profile alignment or layer matching routine. Such an independent approach allows for <italic>matching layers based on physical similarity</italic> (i.e., processes like grain formation and metamorphism or knowledge about snow cover models), whereas <italic>the similarity of the aligned profiles can be assessed based on characteristics relevant for avalanche hazard assessment</italic>. Therefore, we define a similarity measure <inline-formula><mml:math id="M127" display="inline"><mml:mi mathvariant="normal">Φ</mml:mi></mml:math></inline-formula> for generic snow profiles based on the layer characteristics of grain type and hardness, which can be used to numerically compare, evaluate, and group snow profiles.</p>
      <p id="d1e3697">Let us again consider two snow profiles. Some of their layers have been matched, while others have not. The non-matched layers are located either at the very bottom or very top of one of the two profiles. For example, the two profiles could be the profiles <inline-formula><mml:math id="M128" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M129" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> from the previous section. Our goal is to compute a scalar number that expresses the similarity between these two profiles on a scale from <inline-formula><mml:math id="M130" display="inline"><mml:mn mathvariant="normal">0</mml:mn></mml:math></inline-formula>–<inline-formula><mml:math id="M131" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula>. To do so, we start again by computing the (dis)similarities between the corresponding layers analogously to the previous sections. However, in a similarity measure that is geared towards hazard assessment not every layer is equally important. Furthermore, since important weak layers are often much thinner than the bulk layers, they would be dramatically underrepresented in a measure that computes a standard average across all layers. Thus, we bin all layers according to four major grain type classes relevant for avalanche hazard assessments: (1) new snow crystals (PP and DF) that are commonly associated with surface problems, (2) weak layers (SH and DH) and (3) crusts (MFcr) that are typically related to persistent avalanche problems, and (4) all other grain types that represent bulk layers. We calculate separate similarity values for every class (a scalar value within <inline-formula><mml:math id="M132" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>), and the overall similarity between the two profiles is the average similarity derived from the classes.</p>
      <p id="d1e3749">To calculate the similarity for a grain type class, we first distinguish between matched and non-matched layers. All non-matched layers are treated as indifferent and are therefore assigned a similarity value of <inline-formula><mml:math id="M133" display="inline"><mml:mn mathvariant="normal">0.5</mml:mn></mml:math></inline-formula>. Such a strategy makes the measure robust against a varying number of non-matched layers. Next, we calculate the similarities of all matched layers. That can be done with the distance functions from Sect. <xref ref-type="sec" rid="Ch1.S2.SS1"/>, which compute the dissimilarity between two layers based on grain type or hardness. Note that in this context, the grain type distance is calculated based on Table <xref ref-type="table" rid="Ch1.T1"/>b to ensure that the derived similarity is most useful for avalanche forecasting. The resulting distance is converted into a similarity by subtracting the distance from <inline-formula><mml:math id="M134" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula> (i.e., a distance of <inline-formula><mml:math id="M135" display="inline"><mml:mn mathvariant="normal">0.8</mml:mn></mml:math></inline-formula> becomes a similarity of <inline-formula><mml:math id="M136" display="inline"><mml:mn mathvariant="normal">0.2</mml:mn></mml:math></inline-formula>). If the grain type class is new snow crystals or bulk grains, the similarity of a matched layer is computed as the product of the associated similarity of grain type and hardness. The emerging similarity for the entire class is then the average over all (matched and non-matched) layers within.</p>
      <p id="d1e3785">While the above approach works well for new snow crystals and bulk layers, weak layers and crusts require additional considerations to be integrated in a meaningful way.</p>
      <p id="d1e3789">First, given weak layers or crusts, an identical match of the grain type is arguably more important than a hardness evaluation: many weak layers and crusts are thin, and often melt–freeze crust laminates are characterized by an inhomogeneous hardness. These circumstances challenge precise hardness measurements of these layers and make them prone to error. Additionally, crusts play an important role in<?pagebreak page250?> avalanches not as a weak layer themselves, but as a layer favoring adjacent weak layer growth <xref ref-type="bibr" rid="bib1.bibx22" id="paren.52"/>. That in turn makes the grain type of a crust much more important than its hardness when evaluating the similarity between two layers. In summary, a hardness evaluation might introduce more error than benefit, especially when comparing human versus modeled profiles. Therefore, we compute the similarity of a matched weak layer or crust as the associated similarity of grain type alone, thereby neglecting hardness information.</p>
      <p id="d1e3795">Second, for weak layers and crusts, it is specifically important where in the profile they are located. Consider a snow profile with two DH layers close to the ground and one SH layer buried under new snow. A second, almost identical profile lacks the buried SH layer. While the likelihood of triggering and the potential size of avalanches are similar with respect to the two matched DH layers, they are not with respect to the buried SH layer, which is missing in the second profile. Even though the two profiles are visually almost identical, they require different avalanche risk management approaches. If we calculated the similarity for the weak layer class of those two profiles as described above (i.e., as an average over all layers), the thin SH layer would be heavily underrepresented among the thicker DH layers. As a consequence, the weak layer class would exhibit a high similarity value. For example, if the two DH layers were each <inline-formula><mml:math id="M137" display="inline"><mml:mn mathvariant="normal">10</mml:mn></mml:math></inline-formula> cm thick, the SH layer <inline-formula><mml:math id="M138" display="inline"><mml:mn mathvariant="normal">2</mml:mn></mml:math></inline-formula> cm, and the sampling rate were <inline-formula><mml:math id="M139" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula> cm, then the similarity for the weak layer class would be <inline-formula><mml:math id="M140" display="inline"><mml:mrow><mml:mo>(</mml:mo><mml:mn mathvariant="normal">20</mml:mn><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>)</mml:mo><mml:mo>/</mml:mo><mml:mn mathvariant="normal">22</mml:mn><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.9</mml:mn></mml:mrow></mml:math></inline-formula>. Given that the two snowpack conditions demand different risk management approaches, such a high similarity is not meaningful. To mitigate those situations, we divide the two profiles into sections of equal thickness and evaluate the similarity of the weak layers and crusts within those sections separately. The number of sections is determined by the maximum number of weak layers (or crusts) in either of the two profiles. By evaluating similarities of adjacent weak layers or crusts, we introduce a basic weighting scheme for the position of those layers in the profile. It is based on the idea that avalanche likelihood and size, as well as resulting risk management, are rather similar for adjacent weak layers or crusts but rather different for weak layers or crusts in opposing depths of the profile. In our example, there are three weak layers; hence, the two profiles are divided into three sections of equal thickness. We assume that all weak layers that are in the same section require a similar risk management approach. So, the similarity for each section is the average similarity of the weak layers within, and each section is equally important for the hazard assessment, so the similarity for the weak layer class is the average similarity with respect to the sections. In our example, the lower section contains the two DH layers, the middle section contains no weak layers, and the upper section contains the SH layer in one profile. Hence, the similarity for the weak layer class is <inline-formula><mml:math id="M141" display="inline"><mml:mrow><mml:mfenced close=")" open="("><mml:mrow><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mn mathvariant="normal">20</mml:mn><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow><mml:mn mathvariant="normal">20</mml:mn></mml:mfrac></mml:mstyle><mml:mo>+</mml:mo><mml:mstyle displaystyle="false"><mml:mfrac style="text"><mml:mrow><mml:mn mathvariant="normal">2</mml:mn><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">0</mml:mn></mml:mrow><mml:mn mathvariant="normal">2</mml:mn></mml:mfrac></mml:mstyle></mml:mrow></mml:mfenced><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>=</mml:mo><mml:mn mathvariant="normal">0.5</mml:mn></mml:mrow></mml:math></inline-formula>. A weak layer similarity of <inline-formula><mml:math id="M142" display="inline"><mml:mn mathvariant="normal">0.5</mml:mn></mml:math></inline-formula> represents the two snowpack conditions much better than a similarity of <inline-formula><mml:math id="M143" display="inline"><mml:mn mathvariant="normal">0.9</mml:mn></mml:math></inline-formula>.</p>
      <p id="d1e3907">In summary, the resulting similarity measure <inline-formula><mml:math id="M144" display="inline"><mml:mi mathvariant="normal">Φ</mml:mi></mml:math></inline-formula> between two snow profiles expresses the similarity between these two profiles in a scalar value within <inline-formula><mml:math id="M145" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula>. A similarity of <inline-formula><mml:math id="M146" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula> corresponds to the two profiles being identical. Note that the measure is symmetric to the two profiles so that the first profile is as similar to the second profile as the second is to the first. By treating non-matched layers as indifferent the measure is able to cope with varying numbers of missing layers at the bottom or top of the profiles, which is important for assessing the similarity of snow profiles from different times and/or locations. To make the similarity measure useful for avalanche forecasting, it weighs hazardous thin layers, crusts and storm snow layers more heavily than bulk layers, and it considers the relative depth of those layers.</p>
</sec>
</sec>
<sec id="Ch1.S3">
  <label>3</label><title>Aggregation and clustering applications – a practical valuation</title>
      <p id="d1e3950">Section <xref ref-type="sec" rid="Ch1.S2.SS2"/> and <xref ref-type="sec" rid="Ch1.S2.SS3"/> detail how to match layers between snow profiles and how to assess the similarity of the aligned profiles for applications in avalanche hazard assessment. Both of these steps are fundamental prerequisites to automate forecaster tasks, such as grouping similar profiles and finding the representative profile of a group. In the data sciences, these tasks are called data clustering and data aggregation. In this section, we demonstrate how to apply simple data clustering and data aggregation methods to snow profiles based on their prior alignment and similarity assessment. We use these application examples as a face validation of our methods.</p>
<sec id="Ch1.S3.SS1">
  <label>3.1</label><title>Clustering of snow profiles</title>
      <p id="d1e3964">Avalanche professionals need to group snow profiles to understand how snowpack conditions and avalanche hazard vary across space. The snow profile alignment algorithm and similarity measure described in the previous section enable the automation of this task by providing the necessary quantitative link to the well-established field of numerical clustering methods <xref ref-type="bibr" rid="bib1.bibx21 bib1.bibx45" id="paren.53"><named-content content-type="pre">e.g.,</named-content></xref>.</p>
      <p id="d1e3972">To showcase the clustering of snow profiles based on our similarity measure, we use a set of 12 snow profiles that exhibit both pronounced and subtle differences in their snowpack features (Fig. <xref ref-type="fig" rid="Ch1.F4"/>). The alignment and similarity assessment of the snow profiles is based on grain type and hardness information, even though they are visualized in Fig. <xref ref-type="fig" rid="Ch1.F4"/> solely by their grain type sequences. After computing a total of <inline-formula><mml:math id="M147" display="inline"><mml:mrow><mml:mn mathvariant="normal">12</mml:mn><mml:mo>⋅</mml:mo><mml:mn mathvariant="normal">11</mml:mn><mml:mo>=</mml:mo><mml:mn mathvariant="normal">132</mml:mn></mml:mrow></mml:math></inline-formula> profile alignments and similarity assessments, the clustering is carried out by an agglomerative hierarchical clustering algorithm that iteratively fuses individual profiles to clusters based on the similarity of the profiles<fn id="Ch1.Footn3"><p id="d1e3995">We use complete linkage to fuse individual profiles to clusters <xref ref-type="bibr" rid="bib1.bibx21" id="paren.54"/>.</p></fn>. The resulting cluster hierarchy is best analyzed from the top to the bottom, allowing us to separate the set of 12 profiles into up to 12 clusters. The higher a split occurs in the hierarchy, the more distinct the corresponding clusters are from each other.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F4" specific-use="star"><?xmltex \currentcnt{4}?><label>Figure 4</label><caption><p id="d1e4004">Hierarchical clustering of 12 snow profiles based on prior snow profile alignment and similarity assessment. The colors represent the grain types of distinct layers, and the bold black lines separate the four most distinct clusters.</p></caption>
          <?xmltex \igopts{width=412.564961pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021-f04.png"/>

        </fig>

      <p id="d1e4014">The first most distinct split separates the heavily faceted profiles 1–4 from the remaining profiles. The remaining profiles are generally quite similar, except for some subtle but important features that still require different risk management strategies: profiles 5–7 show weak layers in the middle of the snowpack and below the new snow (i.e., second split); profiles 8 and 9 have a weak layer sandwiched between two crusts at the bottom of the snowpack (i.e., third split), and profiles 10–12 either have a weak layer only in the middle of the snowpack or none at all. Additionally to examining those most distinct four clusters, the similarities within the clusters can be investigated further. For example, profile 1 is the most dissimilar profile within the first cluster, being the only profile with a crust below the new snow and the only profile with a pronounced weak layer in mid-snow height. As another example, profile 10 is the outsider in cluster 4, having no weak layer at all.</p>
      <p id="d1e4017">The relationships among the profiles as established by the alignment algorithm and similarity measure yield a sound clustering result that looks similar to how a human avalanche forecaster would group the profiles according to different strategies on how to manage snowpack conditions and the related avalanche hazard. This example demonstrates that our approach can differentiate between very different and subtly different snowpack conditions.</p>
</sec>
<?pagebreak page251?><sec id="Ch1.S3.SS2">
  <label>3.2</label><title>Finding a representative snow profile: the medoid</title>
      <p id="d1e4028">Avalanche forecasters often draw a representative snow profile that summarizes the most important snowpack features within a group of profiles. In the data-mining community, this type of generalization is typically called the average sequence, or aggregate, and the most sophisticated methods for computing that aggregate are closely tied to the alignment algorithm and similarity measure used (e.g., <xref ref-type="bibr" rid="bib1.bibx38 bib1.bibx37" id="altparen.55"/>). In the following, we use the simple approach of identifying the one profile within the group that is most similar to all other profiles, called the medoid profile. Visually, the medoid profile can be thought of as the member of the group that is closest to the geometric center of the group. Mathematically, that means that the medoid profile minimizes the accumulated distances to all other profiles. To identify the medoid, we compute the accumulated distances to all other profiles for every profile. As the distance <inline-formula><mml:math id="M148" display="inline"><mml:mi mathvariant="italic">δ</mml:mi></mml:math></inline-formula> between two profiles <inline-formula><mml:math id="M149" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="M150" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> we use the similarity measure <inline-formula><mml:math id="M151" display="inline"><mml:mi mathvariant="normal">Φ</mml:mi></mml:math></inline-formula> after converting it to a distance by subtracting it from <inline-formula><mml:math id="M152" display="inline"><mml:mn mathvariant="normal">1</mml:mn></mml:math></inline-formula> (see Sect. <xref ref-type="sec" rid="Ch1.S2.SS3"/>). We apply the similarity measure to both profile pairs (<inline-formula><mml:math id="M153" display="inline"><mml:mi>Q</mml:mi></mml:math></inline-formula>, <inline-formula><mml:math id="M154" display="inline"><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>) and (<inline-formula><mml:math id="M155" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mi mathvariant="normal">w</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M156" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula>) to account for missing layers. Hence,<?xmltex \hack{\newpage}?>
            <disp-formula id="Ch1.E2" content-type="numbered"><label>2</label><mml:math id="M157" display="block"><mml:mrow><mml:mi mathvariant="italic">δ</mml:mi><mml:mo>(</mml:mo><mml:mi>Q</mml:mi><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mo>)</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mo>=</mml:mo><mml:mspace width="0.25em" linebreak="nobreak"/><mml:mo movablelimits="false">max⁡</mml:mo><mml:mo mathvariant="italic">{</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Φ</mml:mi><mml:mo>(</mml:mo><mml:mi>Q</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mtext>w</mml:mtext></mml:msub><mml:mo>)</mml:mo><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>-</mml:mo><mml:mi mathvariant="normal">Φ</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub><mml:mo>,</mml:mo><mml:mi>R</mml:mi><mml:mo>)</mml:mo><mml:mo mathvariant="italic">}</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p>
      <p id="d1e4183">The pairwise distances between the profiles of the group can be translated into a configuration plot, which gathers similar profiles close to each other and dissimilar ones further away from each other<fn id="Ch1.Footn4"><p id="d1e4186">We use an ordinal multidimensional scaling approach to create the configuration plot for the group of snow profiles <xref ref-type="bibr" rid="bib1.bibx31" id="paren.56"><named-content content-type="pre">e.g.,</named-content></xref>.</p></fn> (Fig. <xref ref-type="fig" rid="Ch1.F5"/>). The medoid profile, being most similar to all other profiles, is the member of the group that represents the group the best. We use the same set of 12 profiles as in Sect. <xref ref-type="sec" rid="Ch1.S3.SS1"/> to demonstrate the profile aggregation. As the snowpack conditions within the set are too different to meaningfully represent them by one representative profile (Fig. <xref ref-type="fig" rid="Ch1.F5"/>a), we can combine clustering and aggregating to draw the representative profiles of the most distinct clusters within the set (Fig. <xref ref-type="fig" rid="Ch1.F5"/>b – the three clusters consist of profiles 1–4, 5–7, and 8–12, as depicted in Fig. <xref ref-type="fig" rid="Ch1.F4"/>).</p>
      <p id="d1e4206">While our proof of concept demonstrates a sound and reliable workflow, using the medoid profile may be computationally too expensive to efficiently deal with data volumes beyond the order of tens to hundreds of profiles on an operational basis. However, <xref ref-type="bibr" rid="bib1.bibx37" id="text.57"/> show that the medoid approach performs slightly better than any other sequence aggregation method. Dynamic Time Warping Barycenter Averaging <xref ref-type="bibr" rid="bib1.bibx38" id="paren.58"/> might be an alternative aggregating method that could be evaluated in future studies.</p>

      <?xmltex \floatpos{t}?><fig id="Ch1.F5" specific-use="star"><?xmltex \currentcnt{5}?><label>Figure 5</label><caption><p id="d1e4218">Configuration plots of a group of 12 snow profiles with similar profiles gathered close to each other. <bold>(a)</bold> The geometric center of the whole group, which identifies the most representative profile. <bold>(b)</bold> The three most distinct subsets of the whole group, highlighting their associated representative profiles; see Fig. <xref ref-type="fig" rid="Ch1.F4"/>.</p></caption>
          <?xmltex \igopts{width=355.659449pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021-f05.png"/>

        </fig>

</sec>
</sec>
<sec id="Ch1.S4" sec-type="conclusions">
  <label>4</label><title>Discussion and conclusions</title>
      <p id="d1e4244">The snow profile alignment algorithm and the similarity measure presented in this paper aim to address two of the main factors that have limited the adoption of snowpack models to support avalanche warning services and practitioners. First, the methods provide the foundation for numerical grouping and summarizing snow profile data and can thus help to make snowpack model output more accessible by addressing any avalanche operation fundamental questions: <italic>where in the terrain do we find which conditions?</italic> Second, our methods have the potential to make snowpack models more relevant to avalanche forecasters by providing a means for model evaluation against human observations.</p>
      <?pagebreak page252?><p id="d1e4250">Building on the well-established and long-standing concept of Dynamic Time Warping (DTW), we developed a snow profile alignment algorithm that combines multiple layer characteristics of categorical, numerical, and ordinal format into a weighted metric and feeds into existing DTW algorithms such as the open-source R package <monospace>dtw</monospace> (<uri>https://dynamictimewarping.github.io/</uri>, last access: 7 January 2021) <xref ref-type="bibr" rid="bib1.bibx12" id="paren.59"/>. Moreover, we reviewed and derived useful DTW configurations and hyper-parameter settings for snow profile applications. Since these applications rely on operationally available profile observations that typically focus on information relevant for current avalanche conditions only, our approach is able to handle missing data and take advantage of select layer date tags. To maximize the layer matching performance for profiles with limited details, we implemented a scheme for preferential layer matching based on domain knowledge. In parallel, <xref ref-type="bibr" rid="bib1.bibx58" id="text.60"/> extended the layer matching algorithm from <xref ref-type="bibr" rid="bib1.bibx13" id="text.61"/> to conduct a detailed, process-related evaluation of the snowpack model Crocus based on high-quality snow profile observations with a large variety of observed variables that are sampled at specific study sites at regular intervals. Since their goal is the correction of deviating model states with a direct insertion assimilation scheme based on point-scale simulations and observations, their evaluation targets not only each individual layer, but also each individual layer characteristic separately. To address operational avalanche forecasting needs, we additionally developed a similarity measure that focuses on avalanche-forecasting-specific considerations for which certain layers are considered more important. Moreover, combining information from individual layers and their characteristics into a scalar measure allows for clustering and aggregating sets of profiles to characterize and evaluate the regional-scale avalanche hazard conditions.</p>
      <p id="d1e4268">In the data-mining community, similarity (or distance) measures are evaluated through classification applications <xref ref-type="bibr" rid="bib1.bibx63" id="paren.62"/>. Since snow profile data sets that represent the ground truth of alignments or groupings do not (yet) exist, the evaluation of our methods needs to rely on expert judgment or application valuation. During the development of our algorithm, we therefore manually evaluated the alignment of many profile pairs, a few of which are shown in Sect. S3 of the Supplement to demonstrate its behavior. Furthermore, we evaluated the interplay of the alignment algorithm and similarity measure through clustering and aggregation applications. Those applications involve many individual profile assessments and therefore represent a meaningful valuation approach, which shows that the alignment algorithm and similarity measure are capable of distinguishing between subtle differences in the snow stratigraphy and yield a sound grouping that could have been carried out by a human avalanche professional.</p>
      <p id="d1e4274">Although our methods have been designed to accommodate a wide range of requirements and to cope with a variety of scenarios, the following limitations should be considered. First, while the layer matching algorithm can easily be applied to large data sets in an unsupervised manner, not all scenarios within such a data set might be best served with the same parameter settings. Getting meaningful results in highly diverse data sets requires the algorithm to be less constrained. However, this can also result in unrealistic alignments. Second, when alignments are based on grain type and hardness alone, the matching of layers can sometimes be ambiguous – even for human experts. In those cases, labeling a few key layers with their burial date can greatly improve the alignment accuracy with little extra effort, especially as the labeling of weak layers is already established practice in North America <xref ref-type="bibr" rid="bib1.bibx8" id="paren.63"/>. Note that our algorithm can easily be expanded to include other layer properties, especially if they are of ordinal or numeric data types such as grain size or specific surface area. Third, it is important to recognize that any numerical approach that condenses the complexity of these similarity assessments to a one-dimensional scale within <inline-formula><mml:math id="M158" display="inline"><mml:mrow><mml:mo>[</mml:mo><mml:mn mathvariant="normal">0</mml:mn><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.125em"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>]</mml:mo></mml:mrow></mml:math></inline-formula> is unable to capture the full expertise and situational<?pagebreak page254?> flexibility of human forecasters. However, it is a critical prerequisite for algorithmically grouping profiles and establishing ranks among them. As such our similarity measure offers a consistent evaluation of snow profiles that is based on the most commonly available layer characteristics. And lastly, the similarity measure and consequently the clustering and aggregating applications are purely based on the agreement of the snowpack structure. Hence, snow depth is not a driver of our similarity assessment unless it leads to deviations in the snow stratigraphy. If combined with monitoring of the snow depth distribution, a clustering or aggregation application can provide a comprehensive picture of the conditions within a specific forecast area.</p>
      <p id="d1e4298">Since our methods aim to help overcome the operational challenges of summarizing snowpack model data and evaluating that data, we imagine its integration into operational avalanche forecasting as follows. Traditionally, an avalanche risk management operation, such as a public warning service or a backcountry guiding operation, obtains vital information about the snowpack through manual snow pit observations at select point locations. Simulated snow profiles across a mountain drainage can sample the snowpack conditions similarly to field observations, except with higher spatiotemporal coverage and independent from external circumstances. Our methods could group the simulated profiles according to similar conditions, potentially uncovering different avalanche problems. Furthermore, that grouping could quantify the prevalence of those conditions, and the conditions could be linked to their specific location, elevation, and aspect. Then, the different conditions could be summarized by their representative profile to present the data in a familiar way. Human forecasters can then use that simulated data as an additional data source complementing the field observations or deploy targeted field observations to verify the model output. Through a continuous evaluation of the model output against human observations or human assessments (e.g., synthesized snow profiles), the current validity of the simulations could potentially be extrapolated into data-sparse regions. More generally, a continuous evaluation of operational snowpack simulations provides an opportunity to better understand the strengths and weaknesses of the involved model chain for its application in avalanche forecasting. Through this line of research, we hope that snowpack models will be further incorporated into operational avalanche hazard assessment routines so that avalanche forecasters can begin to build an understanding of how to interpret and trust snowpack simulations.</p><?xmltex \hack{\clearpage}?>
</sec>

      
      </body>
    <back><app-group>

<?pagebreak page255?><app id="App1.Ch1.S1">
  <?xmltex \currentcnt{A}?><label>Appendix A</label><title>An exemplary solution to the DTW optimization problem</title>
      <p id="d1e4314">In this section we explain the concept of solving the DTW optimization problem and thereby finding the optimal warping path <inline-formula><mml:math id="M159" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> through the local cost matrix <bold>D</bold>. We do this by applying some of the same constraints that we also use in the snow profile alignment algorithm, most notably the Sakoe–Chiba local slope constraint (symmetric, P<inline-formula><mml:math id="M160" display="inline"><mml:mo>=</mml:mo></mml:math></inline-formula>1; Fig. <xref ref-type="fig" rid="App1.Ch1.S2.F7"/>b) and (symmetric) open-end boundary conditions (see Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS4"/>).</p>
      <p id="d1e4338">As mentioned in Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS1"/>, the DTW optimization problem can be solved recursively with the aid of dynamic programming. Imagine a local cost matrix <bold>D</bold> (<inline-formula><mml:math id="M161" display="inline"><mml:mi>i</mml:mi></mml:math></inline-formula> by <inline-formula><mml:math id="M162" display="inline"><mml:mi>j</mml:mi></mml:math></inline-formula>) with individual elements <inline-formula><mml:math id="M163" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>. Another, yet empty, matrix <bold>G</bold> – the <italic>accumulated</italic> cost matrix – has the same dimension as <bold>D</bold>. From the boundary conditions, we know that the first items of the two sequences need to be matched. Thus, the optimal warping path <inline-formula><mml:math id="M164" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> starts at <inline-formula><mml:math id="M165" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">11</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, which holds the same value as <inline-formula><mml:math id="M166" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mn mathvariant="normal">11</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>. From the local slope constraint, we know that a horizontal or vertical step is only allowed if following a diagonal step. Therefore, as we are about to do our first step, we have to do a diagonal one to <inline-formula><mml:math id="M167" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">22</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>. <inline-formula><mml:math id="M168" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">22</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> is the second element of the optimal warping path <inline-formula><mml:math id="M169" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula>, and its value can be calculated by the accumulated cost one step before (i.e., <inline-formula><mml:math id="M170" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">11</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>) plus twice the local cost of the current step (i.e., <inline-formula><mml:math id="M171" display="inline"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mn mathvariant="normal">22</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>); hence, <inline-formula><mml:math id="M172" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">22</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">11</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>D</mml:mi><mml:mn mathvariant="normal">22</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> (where the weighting factor <inline-formula><mml:math id="M173" display="inline"><mml:mn mathvariant="normal">2</mml:mn></mml:math></inline-formula> represents a slope weight; see Appendix <xref ref-type="sec" rid="App1.Ch1.S2"/>). Since we just did a diagonal step, we are now allowed to step up vertically, diagonally, or horizontally to fields <inline-formula><mml:math id="M174" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">23</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="M175" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">33</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, or <inline-formula><mml:math id="M176" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">32</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>, respectively.</p>

      <?xmltex \floatpos{h!}?><fig id="App1.Ch1.S1.F6"><?xmltex \currentcnt{A1}?><label>Figure A1</label><caption><p id="d1e4537">Sketch of a cost matrix <bold>G</bold> that stores the smallest accumulated cost of visiting a matrix element <inline-formula><mml:math id="M177" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>. In an open-end alignment, the optimal warping path <inline-formula><mml:math id="M178" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> starts at <inline-formula><mml:math id="M179" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">11</mml:mn></mml:msub></mml:mrow></mml:math></inline-formula>. The steps of the warping path are governed by the chosen local slope constraint (black arrows) such that only the grey matrix cells can be visited. The warping path ends in the last row or column of the matrix wherein the accumulated cost is smallest (i.e., at <inline-formula><mml:math id="M180" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mn mathvariant="normal">65</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">6</mml:mn></mml:mrow></mml:math></inline-formula>). See the text for more details.</p></caption>
        <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021-f06.png"/>

      </fig>

      <p id="d1e4597">More generally, any element <inline-formula><mml:math id="M181" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> can be calculated by the recursion
          <disp-formula id="App1.Ch1.S1.E3" content-type="numbered"><label>A1</label><mml:math id="M182" display="block"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo movablelimits="false">min⁡</mml:mo><mml:mfenced open="[" close="]"><mml:mtable class="array" columnalign="left"><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>j</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>j</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>j</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>j</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>-</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mspace width="0.125em" linebreak="nobreak"/><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mfenced><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p>
      <p id="d1e4761">Figure <xref ref-type="fig" rid="App1.Ch1.S1.F6"/> sketches that concept. Each individual step of the optimal warping path <inline-formula><mml:math id="M183" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> is governed by the local slope constraint such that only a limited number of matrix elements can be visited by the warping path. Each of those elements of the cost matrix <bold>G</bold> in turn stores the smallest accumulated cost that is necessary to arrive at that cell. In a symmetric open-end alignment, the final element of the optimal warping path <inline-formula><mml:math id="M184" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> is the one element in the last column or row of <bold>G</bold> that has accumulated the least cost.</p>
      <p id="d1e4786">If the optimal warping path <inline-formula><mml:math id="M185" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> has <inline-formula><mml:math id="M186" display="inline"><mml:mi>K</mml:mi></mml:math></inline-formula> elements from <inline-formula><mml:math id="M187" display="inline"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mi>K</mml:mi></mml:mrow></mml:math></inline-formula>, then each element <inline-formula><mml:math id="M188" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold-italic">p</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> stores its location in the cost matrix by <inline-formula><mml:math id="M189" display="inline"><mml:mrow><mml:msub><mml:mi mathvariant="bold-italic">p</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:msubsup><mml:mi>p</mml:mi><mml:mi>k</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msubsup><mml:mi>p</mml:mi><mml:mi>k</mml:mi><mml:mi>j</mml:mi></mml:msubsup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. Consequently, the accumulated cost of the optimal warping path <inline-formula><mml:math id="M190" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> can be expressed as <inline-formula><mml:math id="M191" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mspace width="0.125em" linebreak="nobreak"/><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>j</mml:mi></mml:msubsup></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula>. For example, for the warping path implied by Fig. <xref ref-type="fig" rid="App1.Ch1.S1.F6"/>, <inline-formula><mml:math id="M192" display="inline"><mml:mrow><mml:mi mathvariant="bold-italic">P</mml:mi><mml:mo>=</mml:mo><mml:mo mathvariant="italic">{</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">1</mml:mn><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mn mathvariant="normal">1</mml:mn><mml:mo>)</mml:mo><mml:mo>,</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">2</mml:mn><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mn mathvariant="normal">2</mml:mn><mml:mo>)</mml:mo><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mo>(</mml:mo><mml:mn mathvariant="normal">6</mml:mn><mml:mo>,</mml:mo><mml:mspace linebreak="nobreak" width="0.25em"/><mml:mn mathvariant="normal">5</mml:mn><mml:mo>)</mml:mo><mml:mo mathvariant="italic">}</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M193" display="inline"><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>j</mml:mi></mml:msubsup></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mtext>G</mml:mtext><mml:mn mathvariant="normal">65</mml:mn></mml:msub><mml:mo>=</mml:mo><mml:mn mathvariant="normal">6</mml:mn></mml:mrow></mml:math></inline-formula>.  Finally, the DTW distance between two sequences, <inline-formula><mml:math id="M194" display="inline"><mml:mrow><mml:mi>d</mml:mi><mml:msub><mml:mi/><mml:mtext>DTW</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>, is expressed by the accumulated cost of the optimal warping path <inline-formula><mml:math id="M195" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> normalized by the length of the path (expressed as Manhattan distance from the matrix origin, for symmetric recursions), i.e.,
          <disp-formula id="App1.Ch1.S1.E4" content-type="numbered"><label>A2</label><mml:math id="M196" display="block"><mml:mrow><mml:mi>d</mml:mi><mml:msub><mml:mi/><mml:mtext>DTW</mml:mtext></mml:msub><mml:mo>=</mml:mo><mml:mstyle displaystyle="true"><mml:mfrac style="display"><mml:mn mathvariant="normal">1</mml:mn><mml:mrow><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>j</mml:mi></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle><mml:mspace linebreak="nobreak" width="0.25em"/><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mspace linebreak="nobreak" width="0.125em"/><mml:msubsup><mml:mi>p</mml:mi><mml:mi>K</mml:mi><mml:mi>j</mml:mi></mml:msubsup></mml:mrow></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p>
      <?pagebreak page256?><p id="d1e5072">In Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS4"/> we introduced the warped snow profile <inline-formula><mml:math id="M197" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>. With the insight gained from the current section, we can now precisely define the warped profile <inline-formula><mml:math id="M198" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula>. Therefore, we adopt the notation introduced in Sect. <xref ref-type="sec" rid="Ch1.S2.SS2.SSS3"/> and additionally denote the layer height of the snow profiles <inline-formula><mml:math id="M199" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M200" display="inline"><mml:mi>R</mml:mi></mml:math></inline-formula> as <inline-formula><mml:math id="M201" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mtext>w</mml:mtext><mml:mtext>Ht</mml:mtext></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M202" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">r</mml:mi><mml:mtext>Ht</mml:mtext></mml:msup></mml:mrow></mml:math></inline-formula>, respectively. Then the warped profile <inline-formula><mml:math id="M203" display="inline"><mml:mrow><mml:msub><mml:mi>Q</mml:mi><mml:mtext>w</mml:mtext></mml:msub></mml:mrow></mml:math></inline-formula> can be constructed with the indices <inline-formula><mml:math id="M204" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">p</mml:mi><mml:mi>i</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M205" display="inline"><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">p</mml:mi><mml:mi>j</mml:mi></mml:msup></mml:mrow></mml:math></inline-formula>, which are given by the warping path <inline-formula><mml:math id="M206" display="inline"><mml:mi mathvariant="bold-italic">P</mml:mi></mml:math></inline-formula> by

              <disp-formula specific-use="align" content-type="numbered"><mml:math id="M207" display="block"><mml:mtable displaystyle="true"><mml:mlabeledtr id="App1.Ch1.S1.E5"><mml:mtd><mml:mtext>A3</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:msubsup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mtext>w</mml:mtext><mml:mtext>Ht</mml:mtext></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle class="stylechange" displaystyle="true"/><mml:mo>=</mml:mo><mml:msubsup><mml:mi mathvariant="bold-italic">r</mml:mi><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">p</mml:mi><mml:mi>j</mml:mi></mml:msup></mml:mrow><mml:mtext>Ht</mml:mtext></mml:msubsup><mml:mo>,</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr><mml:mlabeledtr id="App1.Ch1.S1.E6"><mml:mtd><mml:mtext>A4</mml:mtext></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:msubsup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mtext>w</mml:mtext><mml:mi>g</mml:mi></mml:msubsup></mml:mrow></mml:mtd><mml:mtd><mml:mrow><mml:mstyle displaystyle="true" class="stylechange"/><mml:mo>=</mml:mo><mml:msubsup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mrow><mml:msup><mml:mi mathvariant="bold-italic">p</mml:mi><mml:mi>i</mml:mi></mml:msup></mml:mrow><mml:mi>g</mml:mi></mml:msubsup><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mlabeledtr></mml:mtable></mml:math></disp-formula>

          The vectors <inline-formula><mml:math id="M208" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mtext>w</mml:mtext><mml:mi>h</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="M209" display="inline"><mml:mrow><mml:msubsup><mml:mi mathvariant="bold-italic">q</mml:mi><mml:mtext>w</mml:mtext><mml:mi>t</mml:mi></mml:msubsup></mml:mrow></mml:math></inline-formula> can be calculated analogously to Eq. (<xref ref-type="disp-formula" rid="App1.Ch1.S1.E6"/>).
<?xmltex \hack{\clearpage}?></p>
</app>

<app id="App1.Ch1.S2">
  <?xmltex \currentcnt{B}?><label>Appendix B</label><title>Exemplary DTW step patterns</title>
      <p id="d1e5292">DTW step patterns describe the local slope constraint and the slope weights associated with each step of the warping path. While the local slope constraint limits the warping path to physically meaningful steps, the slope weights, which depend on the local indices' increments, ensure that different alignments can be compared. Both step patterns used in this paper use slope weights that are symmetric to the query and reference sequences but asymmetric slope weights that favor the advance of a certain sequence also exist <xref ref-type="bibr" rid="bib1.bibx40 bib1.bibx44 bib1.bibx12" id="paren.64"/>.</p>
      <p id="d1e5298">While the symmetric, unconstrained step pattern allows the warping path to advance diagonally, vertically, or horizontally at any time of the alignment (Fig. <xref ref-type="fig" rid="App1.Ch1.S2.F7"/>a, used in the alignment of sine waves shown in Fig. <xref ref-type="fig" rid="Ch1.F1"/>), the Sakoe–Chiba symmetric (<inline-formula><mml:math id="M210" display="inline"><mml:mrow><mml:mi>P</mml:mi><mml:mo>=</mml:mo><mml:mn mathvariant="normal">1</mml:mn></mml:mrow></mml:math></inline-formula>) step pattern enforces a diagonal step preceding each horizontal or vertical step to limit the stretching and compressing of the sequences to a factor of <inline-formula><mml:math id="M211" display="inline"><mml:mn mathvariant="normal">2</mml:mn></mml:math></inline-formula> and <inline-formula><mml:math id="M212" display="inline"><mml:mrow><mml:mn mathvariant="normal">1</mml:mn><mml:mo>/</mml:mo><mml:mn mathvariant="normal">2</mml:mn></mml:mrow></mml:math></inline-formula>, respectively (Fig. <xref ref-type="fig" rid="App1.Ch1.S2.F7"/>b, used for snow profile alignments as in Figs. <xref ref-type="fig" rid="Ch1.F2"/>, <xref ref-type="fig" rid="Ch1.F3"/>).
<?xmltex \hack{\newpage}?></p>

      <?xmltex \floatpos{th!}?><fig id="App1.Ch1.S2.F7"><?xmltex \currentcnt{B1}?><label>Figure B1</label><caption><p id="d1e5346">Two exemplary DTW step patterns that illustrate different symmetric local slope constraints and their associated slope weights. While panel <bold>(a)</bold> shows an unconstrained pattern, panel <bold>(b)</bold> shows a pattern that limits the stretching of either sequence to a factor of 2 by enforcing a diagonal step before a horizontal or vertical one.</p></caption>
        <?xmltex \igopts{width=241.848425pt}?><graphic xlink:href="https://gmd.copernicus.org/articles/14/239/2021/gmd-14-239-2021-f07.png"/>

      </fig>

<?xmltex \hack{\clearpage}?>
</app>
  </app-group><notes notes-type="codedataavailability"><title>Code and data availability</title>

      <p id="d1e5367">The snow profile alignment algorithm and similarity measure are implemented in the R language and environment for statistical computing <xref ref-type="bibr" rid="bib1.bibx39" id="paren.65"/> as package <monospace>sarp.snowprofile.alignment</monospace>. Future stable releases of the package will be available from the Comprehensive R Archive Network at <uri>https://cran.r-project.org/package=sarp.snowprofile.alignment</uri> <xref ref-type="bibr" rid="bib1.bibx17" id="paren.66"/>. The latest version of the package is available at Bitbucket (<uri>https://bitbucket.org/sfu-arp/sarp.snowprofile.alignment/src/master/</uri>, <xref ref-type="bibr" rid="bib1.bibx17" id="altparen.67"/>), and a static version of the code as well as the data and the according analysis scripts to reproduce the results presented in this paper are available from a permanent DOI repository at <ext-link xlink:href="https://doi.org/10.17605/OSF.IO/9V8AD" ext-link-type="DOI">10.17605/OSF.IO/9V8AD</ext-link> <xref ref-type="bibr" rid="bib1.bibx16" id="paren.68"/> (using <monospace>R 3.6.3</monospace> and <monospace>dtw v1.21-3</monospace>). Our package builds upon the open-source package <monospace>dtw</monospace> <xref ref-type="bibr" rid="bib1.bibx12" id="paren.69"><named-content content-type="pre"><uri>https://dynamictimewarping.github.io/</uri>, last access: 7 January 2021, by</named-content></xref>, which belongs to the most complete freely available (GPL) implementation of Dynamic Time Warping (DTW) types of algorithms up to date.</p>
  </notes><app-group>
        <supplementary-material position="anchor"><p id="d1e5412">The supplement related to this article is available online at: <inline-supplementary-material xlink:href="https://doi.org/10.5194/gmd-14-239-2021-supplement" xlink:title="pdf">https://doi.org/10.5194/gmd-14-239-2021-supplement</inline-supplementary-material>.</p></supplementary-material>
        </app-group><notes notes-type="authorcontribution"><title>Author contributions</title>

      <p id="d1e5421">All authors conceptualized the research; SH provided the snowpack modeling infrastructure and the snowpack model output; FH derived the methods and implemented both the code and simulations; all authors contributed to writing the paper; PH acquired the funding.</p>
  </notes><notes notes-type="competinginterests"><title>Competing interests</title>

      <p id="d1e5427">The authors declare that they have no conflict of interest.</p>
  </notes><ack><title>Acknowledgements</title><p id="d1e5433">Florian Herla thanks Toni Giorgino for a valuable exchange on open-end DTW, as well as Stephanie Mayer
and Bettina Richter for exchanging research ideas and providing additional snow profile data for methods testing. We thank Pascal Hagenmuller for an email exchange at the outset of the project. We also thank Fabien Maussion for supervising the review process and Matthieu Lafaysse, as well as an anonymous reviewer, for valuable comments that improved the paper considerably.</p></ack><notes notes-type="financialsupport"><title>Financial support</title>

      <p id="d1e5438">This research has been supported by the Natural Sciences and Engineering Research Council of Canada (grant no. IRC/515532-2016).</p>
  </notes><notes notes-type="reviewstatement"><title>Review statement</title>

      <p id="d1e5444">This paper was edited by Fabien Maussion and reviewed by Matthieu Lafaysse and one anonymous referee.</p>
  </notes><ref-list>
    <title>References</title>

      <ref id="bib1.bibx1"><label>Bartelt et al.(2002)Bartelt, Lehning, Bartelt, Brown, Fierz, and
Satyawali</label><?label 2002snowpackI?><mixed-citation>Bartelt, P., Lehning, M., Bartelt, P., Brown, B., Fierz, C., and Satyawali, P.:
A physical SNOWPACK model for the Swiss avalanche warning: Part I: Numerical
model, Cold Reg. Sci. Technol., 35, 123–145,
<ext-link xlink:href="https://doi.org/10.1016/s0165-232x(02)00074-5" ext-link-type="DOI">10.1016/s0165-232x(02)00074-5</ext-link>, 2002.</mixed-citation></ref>
      <ref id="bib1.bibx2"><label>Bellaire and Jamieson(2013a)</label><?label bellaire2013estimating?><mixed-citation>
Bellaire, S. and Jamieson, J. B.: On estimating avalanche danger from
simulated snow profiles, in: Proceedings of the International Snow Science
Workshop, Grenoble–Chamonix Mont-Blanc,   7–11, 2013a.</mixed-citation></ref>
      <ref id="bib1.bibx3"><label>Bellaire and Jamieson(2013b)</label><?label bellaire2013forecasting?><mixed-citation>Bellaire, S. and Jamieson, J. B.: Forecasting the formation of critical snow
layers using a coupled snow cover and weather model, Cold Reg. Sci.
Technol., 94, 37–44, <ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2013.06.007" ext-link-type="DOI">10.1016/j.coldregions.2013.06.007</ext-link>,
2013b.</mixed-citation></ref>
      <ref id="bib1.bibx4"><label>Bellaire et al.(2011)Bellaire, Jamieson, and
Fierz</label><?label bellaire2011forcing?><mixed-citation>Bellaire, S., Jamieson, J. B., and Fierz, C.: Forcing the snow-cover model SNOWPACK with forecasted weather data, The Cryosphere, 5, 1115–1125, <ext-link xlink:href="https://doi.org/10.5194/tc-5-1115-2011" ext-link-type="DOI">10.5194/tc-5-1115-2011</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx5"><label>Berndt and Clifford(1994)</label><?label berndt1994?><mixed-citation>
Berndt, D. J. and Clifford, J.: Using dynamic time warping to find patterns in
time series, in: KDD workshop, Seattle, WA, 10,  359–370, 1994.</mixed-citation></ref>
      <ref id="bib1.bibx6"><?xmltex \def\ref@label{{Brun et~al.(1989)Brun, Martin, Simon, Gendre, and
Col{\'{e}}ou}}?><label>Brun et al.(1989)Brun, Martin, Simon, Gendre, and
Coléou</label><?label brun1989?><mixed-citation>Brun, E., Martin, E., Simon, V., Gendre, C., and Coléou, C.: An energy
and mass model of snow cover suitable for operational avalanche forecasting,
J. Glaciol., 35, 333–342, <ext-link xlink:href="https://doi.org/10.1017/S0022143000009254" ext-link-type="DOI">10.1017/S0022143000009254</ext-link>, 1989.</mixed-citation></ref>
      <ref id="bib1.bibx7"><label>Campbell et al.(2016)Campbell, Conger, Gould, Haegeli, Jamieson, and
Statham</label><?label tasarm2016?><mixed-citation>
Campbell, C., Conger, S., Gould, B., Haegeli, P., Jamieson, J. B., and Statham,
G.: Technical Aspects of Snow Avalanche Risk Management–Resources and
Guidelines for Avalanche Practitioners in Canada, Revelstoke, BC, Canada,
2016.</mixed-citation></ref>
      <ref id="bib1.bibx8"><label>Canadian Avalanche Association(2016)</label><?label ogrs2016?><mixed-citation>
Canadian Avalanche Association: Observation Guidelines and Recording
Standards for Weather, Snowpack, and Avalanches, Tech. rep., Revelstoke, BC,
Canada, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx9"><label>Fierz(1998)</label><?label Fierz1998?><mixed-citation>Fierz, C.: Field observation and modelling of weak-layer evolution, Ann.
Glaciol., 26, 7–13, <ext-link xlink:href="https://doi.org/10.3189/1998AoG26-1-7-13" ext-link-type="DOI">10.3189/1998AoG26-1-7-13</ext-link>, 1998.</mixed-citation></ref>
      <ref id="bib1.bibx10"><label>Fierz et al.(2009)Fierz, Armstrong, Durand, Etchevers, Greene,
McClung, Nishimura, Satyawali, and Sokratov</label><?label fierz2009?><mixed-citation>Fierz, C., Armstrong, R. L., Durand, Y., Etchevers, P., Greene, E., McClung,
D. M., Nishimura, K., Satyawali, P., and Sokratov, S. A.: The International
Classification for Seasonal Snow on the Ground,  5, UNESCO/IHP,
available at: <uri>https://unesdoc.unesco.org/ark:/48223/pf000018646</uri> (last access: 7 January 2021), 2009.</mixed-citation></ref>
      <ref id="bib1.bibx11"><label>Fu et al.(2007)Fu, Keogh, Lau, Ratanamahatana, and Wong</label><?label fu2007?><mixed-citation>Fu, A. W.-C., Keogh, E. J., Lau, L. Y. H., Ratanamahatana, C. A., and Wong, R.
C.-W. W.: Scaling and time warping in time series querying, VLDB J., 17,
899–921, <ext-link xlink:href="https://doi.org/10.1007/s00778-006-0040-z" ext-link-type="DOI">10.1007/s00778-006-0040-z</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx12"><label>Giorgino(2009)</label><?label giorgino2009?><mixed-citation>Giorgino, T.: Computing and Visualizing Dynamic Time Warping Alignments in
R: The dtw Package, J. Stat. Softw., 31, 7, <ext-link xlink:href="https://doi.org/10.18637/jss.v031.i07" ext-link-type="DOI">10.18637/jss.v031.i07</ext-link>,
2009.</mixed-citation></ref>
      <ref id="bib1.bibx13"><label>Hagenmuller and Pilloix(2016)</label><?label hagenmuller2016?><mixed-citation>Hagenmuller, P. and Pilloix, T.: A New Method for Comparing and Matching Snow
Profiles, Application for Profiles Measured by Penetrometers, Front. Earth
Sci., 4, 52, <ext-link xlink:href="https://doi.org/10.3389/feart.2016.00052" ext-link-type="DOI">10.3389/feart.2016.00052</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx14"><label>Hagenmuller et al.(2018a)Hagenmuller, van Herwijnen,
Pielmeier, and Marshall</label><?label Hagenmuller2018sp2?><mixed-citation>Hagenmuller, P., van Herwijnen, A., Pielmeier, C., and Marshall, H.-P.:
Evaluation of the snow penetrometer Avatech SP2, Cold Reg. Sci. Technol.,
149, 83–94, <ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2018.02.006" ext-link-type="DOI">10.1016/j.coldregions.2018.02.006</ext-link>, 2018a.</mixed-citation></ref>
      <ref id="bib1.bibx15"><label>Hagenmuller et al.(2018b)Hagenmuller, Viallon,
Bouchayer, Teich, Lafaysse, and Vionnet</label><?label hagenmuller2018issw?><mixed-citation>Hagenmuller, P., Viallon, L., Bouchayer, C., Teich, M., Lafaysse, M., and
Vionnet, V.: Quantitative Comparison of Snow Profiles, in: Proceedings of
the 2018 international snow science workshop, Innsbruck, AUT,   876–879,
available at: <uri>https://arc.lib.montana.edu/snow-science/item/2668</uri> (last access: 7 January 2021),
2018b.</mixed-citation></ref>
      <?pagebreak page258?><ref id="bib1.bibx16"><label>Herla et al.(2020)</label><?label herla2020?><mixed-citation>Herla, F.,  Horton, S.,  Mair, P.,  and Haegeli, P.:  Snow profile alignment and similarity assessment – Data and Code,
Open Science Framework (OSF), <ext-link xlink:href="https://doi.org/10.17605/OSF.IO/9V8AD" ext-link-type="DOI">10.17605/OSF.IO/9V8AD</ext-link>, 2020.</mixed-citation></ref>
      <ref id="bib1.bibx17"><label>Herla et al.(2021)</label><?label herla2021?><mixed-citation>Herla, F.,  Horton, S.,  Mair, P.,  and Haegeli, P.:  sarp.snowprofile.alignment, available at: <uri>https://cran.r-project.org/package=sarp.snowprofile.alignment</uri>, last access: 7 January 2021.</mixed-citation></ref>
      <ref id="bib1.bibx18"><label>Horton and Jamieson(2016)</label><?label horton2016?><mixed-citation>Horton, S. and Jamieson, J. B.: Modelling hazardous surface hoar layers across
western Canada with a coupled weather and snow cover model, Cold Reg. Sci.
Technol., 128, 22–31, <ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2016.05.002" ext-link-type="DOI">10.1016/j.coldregions.2016.05.002</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx19"><label>Horton et al.(2014)Horton, Bellaire, and Jamieson</label><?label Horton2014?><mixed-citation>Horton, S., Bellaire, S., and Jamieson, J. B.: Modelling the formation of
surface hoar layers and tracking post-burial changes for avalanche
forecasting, Cold Reg. Sci. Technol., 97, 81–89,
<ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2013.06.012" ext-link-type="DOI">10.1016/j.coldregions.2013.06.012</ext-link>, 2014.</mixed-citation></ref>
      <ref id="bib1.bibx20"><label>Horton et al.(2015)Horton, Schirmer, and Jamieson</label><?label Horton2015?><mixed-citation>Horton, S., Schirmer, M., and Jamieson, B.: Meteorological, elevation, and slope effects on surface hoar formation, The Cryosphere, 9, 1523–1533, <ext-link xlink:href="https://doi.org/10.5194/tc-9-1523-2015" ext-link-type="DOI">10.5194/tc-9-1523-2015</ext-link>, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx21"><label>James et al.(2013)James, Witten, Hastie, and Tibshirani</label><?label James2013?><mixed-citation>James, G., Witten, D., Hastie, T., and Tibshirani, R.: Statistical Learning, Springer Texts in Statistics,  Springer New York, NY,
103, <ext-link xlink:href="https://doi.org/10.1007/978-1-4614-7138-7" ext-link-type="DOI">10.1007/978-1-4614-7138-7</ext-link>, 2013.</mixed-citation></ref>
      <ref id="bib1.bibx22"><label>Jamieson(2006)</label><?label Jamieson2006?><mixed-citation>Jamieson, J. B.: Formation of refrozen snowpack layers and their role in slab
avalanche release, Rev. Geophys., 44, RG2001, <ext-link xlink:href="https://doi.org/10.1029/2005RG000176" ext-link-type="DOI">10.1029/2005RG000176</ext-link>,
2006.</mixed-citation></ref>
      <ref id="bib1.bibx23"><label>Keogh and Ratanamahatana(2005)</label><?label keogh2005?><mixed-citation>Keogh, E. J. and Ratanamahatana, C. A.: Exact indexing of dynamic time
warping, Knowl. Inf. Syst., 7, 358–386, <ext-link xlink:href="https://doi.org/10.1007/s10115-004-0154-9" ext-link-type="DOI">10.1007/s10115-004-0154-9</ext-link>,
2005.</mixed-citation></ref>
      <ref id="bib1.bibx24"><label>LaChapelle(1966)</label><?label Lachapelle1966?><mixed-citation>
LaChapelle, E. R.: Avalanche Forecasting – A Modern Synthesis, in:
International Association of Scientific Hydrology, Publication, 69,
410–417, 1966.</mixed-citation></ref>
      <ref id="bib1.bibx25"><label>LaChapelle(1980)</label><?label Lachapelle1980?><mixed-citation>LaChapelle, E. R.: The fundamental processes in conventional avalanche
forecasting, J. Glaciol., 26, 75–84, <ext-link xlink:href="https://doi.org/10.3189/s0022143000010601" ext-link-type="DOI">10.3189/s0022143000010601</ext-link>,
1980.</mixed-citation></ref>
      <ref id="bib1.bibx26"><?xmltex \def\ref@label{{Lehning et~al.(1999)Lehning, Bartelt, Brown, Russi, St{\"{o}}ckli,
and Zimmerli}}?><label>Lehning et al.(1999)Lehning, Bartelt, Brown, Russi, Stöckli,
and Zimmerli</label><?label Lehning1999?><mixed-citation>Lehning, M., Bartelt, P., Brown, B., Russi, T., Stöckli, U., and
Zimmerli, M.: SNOWPACK model calculations for avalanche warning based upon a
new network of weather and snow stations, Cold Reg. Sci. Technol., 30,
145–157, <ext-link xlink:href="https://doi.org/10.1016/S0165-232X(99)00022-1" ext-link-type="DOI">10.1016/S0165-232X(99)00022-1</ext-link>, 1999.</mixed-citation></ref>
      <ref id="bib1.bibx27"><label>Lehning et al.(2001)Lehning, Fierz, and Lundy</label><?label lehning2001?><mixed-citation>Lehning, M., Fierz, C., and Lundy, C.: An objective snow profile comparison
method and its application to SNOWPACK, Cold Reg. Sci. Technol., 33,
253–261, <ext-link xlink:href="https://doi.org/10.1016/s0165-232x(01)00044-1" ext-link-type="DOI">10.1016/s0165-232x(01)00044-1</ext-link>, 2001.</mixed-citation></ref>
      <ref id="bib1.bibx28"><label>Lehning et al.(2002a)Lehning, Bartelt, Brown, and
Fierz</label><?label 2002snowpackIII?><mixed-citation>Lehning, M., Bartelt, P., Brown, B., and Fierz, C.: A physical SNOWPACK model
for the Swiss avalanche warning Part III: Meteorological forcing, thin layer
formation and evaluation, Cold Reg. Sci. Technol., 35, 169–184,
<ext-link xlink:href="https://doi.org/10.1016/S0165-232X(02)00072-1" ext-link-type="DOI">10.1016/S0165-232X(02)00072-1</ext-link>, 2002a.</mixed-citation></ref>
      <ref id="bib1.bibx29"><label>Lehning et al.(2002b)Lehning, Bartelt, Brown, Fierz, and
Satyawali</label><?label 2002snowpackII?><mixed-citation>Lehning, M., Bartelt, P., Brown, B., Fierz, C., and Satyawali, P.: A physical
SNOWPACK model for the Swiss avalanche warning Part II. Snow microstructure,
Cold Reg. Sci. Technol., 35, 147–167, <ext-link xlink:href="https://doi.org/10.1016/S0165-232X(02)00073-3" ext-link-type="DOI">10.1016/S0165-232X(02)00073-3</ext-link>,
2002b.</mixed-citation></ref>
      <ref id="bib1.bibx30"><label>Lehning et al.(2004)Lehning, Fierz, Brown, and
Jamieson</label><?label lehning2004?><mixed-citation>Lehning, M., Fierz, C., Brown, B., and Jamieson, J. B.: Modeling snow
instability with the snow-cover model SNOWPACK, Ann. Glaciol., 38, 331–338,
<ext-link xlink:href="https://doi.org/10.3189/172756404781815220" ext-link-type="DOI">10.3189/172756404781815220</ext-link>, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx31"><label>Mair(2018)</label><?label Mair2018?><mixed-citation>Mair, P.: Modern Psychometrics with R, Use R!, Springer International
Publishing, Cham,  ISBN: 978-3-319-93175-3, <ext-link xlink:href="https://doi.org/10.1007/978-3-319-93177-7" ext-link-type="DOI">10.1007/978-3-319-93177-7</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bibx32"><label>McClung(2002)</label><?label mcClung2002b?><mixed-citation>McClung, D. M.: The Elements of Applied Avalanche Forecasting, Part II: The
Physical Issues and the Rules of Applied Avalanche Forecasting, Nat.
Hazards, 26, 131–146, <ext-link xlink:href="https://doi.org/10.1023/a:1015604600361" ext-link-type="DOI">10.1023/a:1015604600361</ext-link>, 2002.</mixed-citation></ref>
      <ref id="bib1.bibx33"><label>McClung and Schaerer(2006)</label><?label mcClung2006handbook?><mixed-citation>
McClung, D. M. and Schaerer, P.: The avalanche handbook, 3rd Edn., Mountaineers Books,  Seattle, WA
ISBN: 978-0-89886-809-8,
2006.</mixed-citation></ref>
      <ref id="bib1.bibx34"><?xmltex \def\ref@label{{Monti et~al.(2014{\natexlab{a}})Monti, Schweizer, and
Fierz}}?><label>Monti et al.(2014a)Monti, Schweizer, and
Fierz</label><?label monti2014?><mixed-citation>Monti, F., Schweizer, J., and Fierz, C.: Hardness estimation and weak layer
detection in simulated snow stratigraphy, Cold Reg. Sci. Technol., 103,
82–90, <ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2014.03.009" ext-link-type="DOI">10.1016/j.coldregions.2014.03.009</ext-link>, 2014a.</mixed-citation></ref>
      <ref id="bib1.bibx35"><?xmltex \def\ref@label{{Monti et~al.(2014{\natexlab{b}})Monti, Schweizer, Gaume, and
Fierz}}?><label>Monti et al.(2014b)Monti, Schweizer, Gaume, and
Fierz</label><?label monti2014issw?><mixed-citation>
Monti, F., Schweizer, J., Gaume, J., and Fierz, C.: Deriving snow stability
information from simulated snow cover stratigraphy, in: Proceedings of the
2014 international snow science workshop, Banff, AB,   465–469,
2014b.</mixed-citation></ref>
      <ref id="bib1.bibx36"><label>Morin et al.(2020)Morin, Fierz, Horton, Bavay, Dumont, Hagenmuller,
Lafaysse, Mitterer, Monti, Olefs, Snook, Techel, Van Herwijnen, and
Vionnet</label><?label Morin2020?><mixed-citation>Morin, S., Fierz, C., Horton, S., Bavay, M., Dumont, M., Hagenmuller, P.,
Lafaysse, M., Mitterer, C., Monti, F., Olefs, M., Snook, J. S., Techel, F.,
Van Herwijnen, A., and Vionnet, V.: Application of physical snowpack
models in support of operational avalanche hazard forecasting: A status
report on current implementations and prospects for the future, Cold Reg.
Sci. Technol., 170, 1098–1107, <ext-link xlink:href="https://doi.org/10.1016/J.COLDREGIONS.2019.102910" ext-link-type="DOI">10.1016/J.COLDREGIONS.2019.102910</ext-link>,
2020.</mixed-citation></ref>
      <ref id="bib1.bibx37"><label>Paparrizos and Gravano(2015)</label><?label paparrizos2015?><mixed-citation>
Paparrizos, J. and Gravano, L.: k-shape: Efficient and accurate clustering of
time series, in: Proceedings of the 2015 ACM SIGMOD International Conference
on Management of Data,  ACM, 1855–1870, 2015.</mixed-citation></ref>
      <ref id="bib1.bibx38"><?xmltex \def\ref@label{{Petitjean et~al.(2011)Petitjean, Ketterlin, and
Gan{\c{c}}arski}}?><label>Petitjean et al.(2011)Petitjean, Ketterlin, and
Gançarski</label><?label petitjean2010?><mixed-citation>Petitjean, F., Ketterlin, A., and Gançarski, P.: A global averaging
method for dynamic time warping, with applications to clustering, Pattern
Recogn., 44, 678–693, <ext-link xlink:href="https://doi.org/10.1016/j.patcog.2010.09.013" ext-link-type="DOI">10.1016/j.patcog.2010.09.013</ext-link>, 2011.</mixed-citation></ref>
      <ref id="bib1.bibx39"><label>R Core Team(2020)</label><?label RCoreTeam2020?><mixed-citation>R Core Team: R: A Language and Environment for Statistical Computing,
available at: <uri>https://www.r-project.org/</uri> (last access: 7 January 2021), 2020.</mixed-citation></ref>
      <ref id="bib1.bibx40"><label>Rabiner and Juang(1993)</label><?label rabiner1993?><mixed-citation>
Rabiner, L. and Juang, B.-H.: Fundamentals of speech processing,   Prentice Hall,  Englewood Cliffs, NJ, USA,
1993.</mixed-citation></ref>
      <ref id="bib1.bibx41"><label>Ratanamahatana and Keogh(2004)</label><?label ratanamahatana2004?><mixed-citation>
Ratanamahatana, C. A. and Keogh, E. J.: Everything you know about dynamic time
warping is wrong, in: Third workshop on mining temporal and sequential data,
Citeseer, 32, 2004.</mixed-citation></ref>
      <ref id="bib1.bibx42"><label>Sakoe(1971)</label><?label sakoe1971?><mixed-citation>
Sakoe, H.: Dynamic-programming approach to continuous speech recognition, in:
1971 Proc. the International Congress of Acoustics, Budapest, 1971.</mixed-citation></ref>
      <ref id="bib1.bibx43"><label>Sakoe and Chiba(1970)</label><?label sakoe1970?><mixed-citation>
Sakoe, H. and Chiba, S.: A similarity evaluation of speech patterns by dynamic
programming, in: Nat. Meeting of Institute of Electronic Communications
Engineers of Japan, p. 136, 1970.</mixed-citation></ref>
      <ref id="bib1.bibx44"><label>Sakoe and Chiba(1978)</label><?label sakoe1978?><mixed-citation>Sakoe, H. and Chiba, S.: Dynamic programming algorithm optimization for spoken
word recognition, IEEE T. Acoust. Speech, 26, 43–49, <ext-link xlink:href="https://doi.org/10.1109/tassp.1978.1163055" ext-link-type="DOI">10.1109/tassp.1978.1163055</ext-link>, 1978.</mixed-citation></ref>
      <ref id="bib1.bibx45"><label>Sarda-Espinosa(2019)</label><?label SardaEspinosa2019?><mixed-citation>Sarda-Espinosa, A.: dtwclust: Time Series Clustering Along with
Optimizations for the Dynamic Time Warping Distance,
available at: <uri>https://cran.r-project.org/package=dtwclust</uri> (last access: 7 January 2021), 2019.</mixed-citation></ref>
      <ref id="bib1.bibx46"><label>Schaller et al.(2016)Schaller, Freitag, Kipfstuhl, Laepple,
Christian Steen-Larsen, and Eisen</label><?label Schaller2016?><mixed-citation>Schaller, C. F., Freitag, J., Kipfstuhl, S., Laepple, T., Steen-Larsen, H. C., and Eisen, O.: A representative density profile of the North Greenland snowpack, The Cryosphere, 10, 1991–2002, <ext-link xlink:href="https://doi.org/10.5194/tc-10-1991-2016" ext-link-type="DOI">10.5194/tc-10-1991-2016</ext-link>, 2016.</mixed-citation></ref>
      <?pagebreak page259?><ref id="bib1.bibx47"><label>Schirmer et al.(2009)Schirmer, Lehning, and Schweizer</label><?label schirmer2009?><mixed-citation>
Schirmer, M., Lehning, M., and Schweizer, J.: Statistical forecasting of
regional avalanche danger using simulated snow-cover data, J. Glaciol., 55,
761–768, 2009.</mixed-citation></ref>
      <ref id="bib1.bibx48"><label>Schirmer et al.(2010)Schirmer, Schweizer, and Lehning</label><?label schirmer2010?><mixed-citation>Schirmer, M., Schweizer, J., and Lehning, M.: Statistical evaluation of local
to regional snowpack stability using simulated snow-cover data, Cold Reg.
Sci. Technol., 64, 110–118, <ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2010.04.012" ext-link-type="DOI">10.1016/j.coldregions.2010.04.012</ext-link>, 2010.</mixed-citation></ref>
      <ref id="bib1.bibx49"><label>Schweizer and Jamieson(2001)</label><?label Schweizer2001properties?><mixed-citation>Schweizer, J. and Jamieson, J. B.: Snow cover properties for skier triggering
of avalanches, Cold Reg. Sci. Technol., 33, 207–221,
<ext-link xlink:href="https://doi.org/10.1016/S0165-232X(01)00039-8" ext-link-type="DOI">10.1016/S0165-232X(01)00039-8</ext-link>, 2001.</mixed-citation></ref>
      <ref id="bib1.bibx50"><label>Schweizer and Jamieson(2007)</label><?label schweizer2007?><mixed-citation>Schweizer, J. and Jamieson, J. B.: A threshold sum approach to stability
evaluation of manual snow profiles, Cold Reg. Sci. Technol., 47, 50–59,
<ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2006.08.011" ext-link-type="DOI">10.1016/j.coldregions.2006.08.011</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx51"><label>Schweizer et al.(2006)Schweizer, Bellaire, Fierz, Lehning, and
Pielmeier</label><?label schweizer2006?><mixed-citation>Schweizer, J., Bellaire, S., Fierz, C., Lehning, M., and Pielmeier, C.:
Evaluating and improving the stability predictions of the snow cover model
SNOWPACK, Cold Reg. Sci. Technol., 46, 52–59,
<ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2006.05.007" ext-link-type="DOI">10.1016/j.coldregions.2006.05.007</ext-link>, 2006.</mixed-citation></ref>
      <ref id="bib1.bibx52"><label>Schweizer et al.(2007)Schweizer, Kronholm, Jamieson, and
Birkeland</label><?label schweizer2007spatialV?><mixed-citation>Schweizer, J., Kronholm, K., Jamieson, J. B., and Birkeland, K. W.: Review of
spatial variability of snowpack properties and its importance for avalanche
formation, Cold Reg. Sci. Technol., 51, 253–272,
<ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2007.04.009" ext-link-type="DOI">10.1016/j.coldregions.2007.04.009</ext-link>, 2007.</mixed-citation></ref>
      <ref id="bib1.bibx53"><label>Statham et al.(2018)Statham, Haegeli, Greene, Birkeland, Israelson,
Tremper, Stethem, McMahon, White, and Kelly</label><?label CMAH?><mixed-citation>Statham, G., Haegeli, P., Greene, E., Birkeland, K. W., Israelson, C., Tremper,
B., Stethem, C., McMahon, B., White, B., and Kelly, J.: A conceptual model
of avalanche hazard, Nat. Hazards, 90, 663–691,
<ext-link xlink:href="https://doi.org/10.1007/s11069-017-3070-5" ext-link-type="DOI">10.1007/s11069-017-3070-5</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bibx54"><label>Storm(2012)</label><?label storm2012?><mixed-citation>
Storm, I.: Public Avalanche Forecast Challenges: Canada's Large Data-Sparse
Regions, in: Proceedings, 2012 International Snow Science Workshop,
Anchorage, Alaska,  908–912, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx55"><label>Teich et al.(2019)Teich, Giunta, Hagenmuller, Bebi, Schneebeli, and
Jenkins</label><?label Teich2019?><mixed-citation>Teich, M., Giunta, A. D., Hagenmuller, P., Bebi, P., Schneebeli, M., and
Jenkins, M. J.: Effects of bark beetle attacks on forest snowpack and
avalanche formation – Implications for protection forest management, Forest
Ecol. Manage., 438, 186–203, <ext-link xlink:href="https://doi.org/10.1016/j.foreco.2019.01.052" ext-link-type="DOI">10.1016/j.foreco.2019.01.052</ext-link>, 2019.</mixed-citation></ref>
      <ref id="bib1.bibx56"><label>Tormene et al.(2009)Tormene, Giorgino, Quaglini, and
Stefanelli</label><?label tormene2009?><mixed-citation>Tormene, P., Giorgino, T., Quaglini, S., and Stefanelli, M.: Matching
incomplete time series with dynamic time warping: an algorithm and an
application to post-stroke rehabilitation, Artif. Intell. Med., 45, 11–34,
<ext-link xlink:href="https://doi.org/10.1016/j.artmed.2008.11.007" ext-link-type="DOI">10.1016/j.artmed.2008.11.007</ext-link>, 2009.
</mixed-citation></ref><?xmltex \hack{\newpage}?>
      <ref id="bib1.bibx57"><label>Van Peursem et al.(2016)Van Peursem, Hendrikx, Birkeland, Miller,
and Gibson</label><?label vanpeursem2016?><mixed-citation>
Van Peursem, K., Hendrikx, J., Birkeland, K. W., Miller, D., and Gibson, C.:
Validation of a coupled weather and snowpack model across western montana,
in: Proceedings of the 2016 international snow science workshop,
Breckenridge, Montana, Breckenridge, CO, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx58"><label>Viallon-Galinier et al.(2020)Viallon-Galinier, Hagenmuller, and
Lafaysse</label><?label ViallonGalinier2020?><mixed-citation>Viallon-Galinier, L., Hagenmuller, P., and Lafaysse, M.: Forcing and
evaluating detailed snow cover models with stratigraphy observations, Cold
Reg. Sci. Technol., 180, 103163, <ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2020.103163" ext-link-type="DOI">10.1016/j.coldregions.2020.103163</ext-link>,
2020.</mixed-citation></ref>
      <ref id="bib1.bibx59"><label>Vick(2002)</label><?label Vick2002?><mixed-citation>
Vick, S. G.: Degrees of belief: Subjective probability and engineering
judgment, 472 pp.,
ISBN: 978-0784405987, ASCE Publications, Reston, VA, USA,
2002.</mixed-citation></ref>
      <ref id="bib1.bibx60"><label>Vionnet et al.(2012)Vionnet, Brun, Morin, Boone, Faroux, Le Moigne,
Martin, and Willemet</label><?label Vionnet2012?><mixed-citation>Vionnet, V., Brun, E., Morin, S., Boone, A., Faroux, S., Le Moigne, P., Martin, E., and Willemet, J.-M.: The detailed snowpack scheme Crocus and its implementation in SURFEX v7.2, Geosci. Model Dev., 5, 773–791, <ext-link xlink:href="https://doi.org/10.5194/gmd-5-773-2012" ext-link-type="DOI">10.5194/gmd-5-773-2012</ext-link>, 2012.</mixed-citation></ref>
      <ref id="bib1.bibx61"><?xmltex \def\ref@label{{Vionnet et~al.(2016)Vionnet, Dombrowski-Etchevers, Lafaysse,
Qu{\'{e}}no, Seity, and Bazile}}?><label>Vionnet et al.(2016)Vionnet, Dombrowski-Etchevers, Lafaysse,
Quéno, Seity, and Bazile</label><?label Vionnet2016?><mixed-citation>Vionnet, V., Dombrowski-Etchevers, I., Lafaysse, M., Quéno, L., Seity,
Y., and Bazile, E.: Numerical Weather Forecasts at Kilometer Scale in the
French Alps: Evaluation and Application for Snowpack Modeling, J.
Hydrometeorol., 17, 2591–2614, <ext-link xlink:href="https://doi.org/10.1175/jhm-d-15-0241.1" ext-link-type="DOI">10.1175/jhm-d-15-0241.1</ext-link>, 2016.</mixed-citation></ref>
      <ref id="bib1.bibx62"><label>Vionnet et al.(2018)Vionnet, Guyomarc'h, Lafaysse, Naaim-Bouvet,
Giraud, and Deliot</label><?label Vionnet2018?><mixed-citation>Vionnet, V., Guyomarc'h, G., Lafaysse, M., Naaim-Bouvet, F., Giraud, G., and
Deliot, Y.: Operational implementation and evaluation of a blowing snow
scheme for avalanche hazard forecasting, Cold Reg. Sci. Technol., 147,
1–10, <ext-link xlink:href="https://doi.org/10.1016/j.coldregions.2017.12.006" ext-link-type="DOI">10.1016/j.coldregions.2017.12.006</ext-link>, 2018.</mixed-citation></ref>
      <ref id="bib1.bibx63"><label>Wang et al.(2013)Wang, Mueen, Ding, Trajcevski, Scheuermann, and
Keogh</label><?label wang2013?><mixed-citation>Wang, X., Mueen, A., Ding, H., Trajcevski, G., Scheuermann, P., and Keogh,
E. J.: Experimental comparison of representation methods and distance
measures for time series data, Data Min. Knowl. Disc., 26, 275–309,
<ext-link xlink:href="https://doi.org/10.1007/s10618-012-0250-5" ext-link-type="DOI">10.1007/s10618-012-0250-5</ext-link>, 2013.</mixed-citation></ref>

  </ref-list></back>
    <!--<article-title-html>Snow profile alignment and similarity assessment for aggregating, clustering, and evaluating snowpack model output  for avalanche forecasting</article-title-html>
<abstract-html><p>Snowpack models simulate the evolution of the snow stratigraphy based on meteorological inputs and have the potential to support avalanche risk management operations with complementary information relevant for their avalanche hazard assessment, especially in data-sparse regions or at times of unfavorable weather and hazard conditions. However, the adoption of snowpack models in operational avalanche forecasting has been limited, predominantly due to missing data processing algorithms and uncertainty around model validity. Thus, to enhance the usefulness of snowpack models for the avalanche industry, numerical methods are required that evaluate and summarize snowpack model output in accessible and relevant ways. We present algorithms that compare and assess generic snowpack data from both human observations and models, which consist of multidimensional sequences describing the snow characteristics of grain type, hardness, and age. Our approach exploits Dynamic   Time Warping, a well-established method in the data sciences, to match layers between snow profiles and thereby align them. The similarity of the aligned profiles is then evaluated by our independent similarity measure based on characteristics relevant for avalanche hazard assessment. Since our methods provide the necessary quantitative link to data clustering and aggregating methods, we demonstrate how snowpack model output can be grouped and summarized according to similar hazard conditions. By emulating aspects of the human avalanche hazard assessment process, our methods aim to promote the operational application of snowpack models so that avalanche forecasters can begin to build an understanding of how to interpret and trust operational snowpack simulations.</p></abstract-html>
<ref-html id="bib1.bib1"><label>Bartelt et al.(2002)Bartelt, Lehning, Bartelt, Brown, Fierz, and
Satyawali</label><mixed-citation>
Bartelt, P., Lehning, M., Bartelt, P., Brown, B., Fierz, C., and Satyawali, P.:
A physical SNOWPACK model for the Swiss avalanche warning: Part I: Numerical
model, Cold Reg. Sci. Technol., 35, 123–145,
<a href="https://doi.org/10.1016/s0165-232x(02)00074-5" target="_blank">https://doi.org/10.1016/s0165-232x(02)00074-5</a>, 2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib2"><label>Bellaire and Jamieson(2013a)</label><mixed-citation>
Bellaire, S. and Jamieson, J. B.: On estimating avalanche danger from
simulated snow profiles, in: Proceedings of the International Snow Science
Workshop, Grenoble–Chamonix Mont-Blanc,   7–11, 2013a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib3"><label>Bellaire and Jamieson(2013b)</label><mixed-citation>
Bellaire, S. and Jamieson, J. B.: Forecasting the formation of critical snow
layers using a coupled snow cover and weather model, Cold Reg. Sci.
Technol., 94, 37–44, <a href="https://doi.org/10.1016/j.coldregions.2013.06.007" target="_blank">https://doi.org/10.1016/j.coldregions.2013.06.007</a>,
2013b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib4"><label>Bellaire et al.(2011)Bellaire, Jamieson, and
Fierz</label><mixed-citation>
Bellaire, S., Jamieson, J. B., and Fierz, C.: Forcing the snow-cover model SNOWPACK with forecasted weather data, The Cryosphere, 5, 1115–1125, <a href="https://doi.org/10.5194/tc-5-1115-2011" target="_blank">https://doi.org/10.5194/tc-5-1115-2011</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib5"><label>Berndt and Clifford(1994)</label><mixed-citation>
Berndt, D. J. and Clifford, J.: Using dynamic time warping to find patterns in
time series, in: KDD workshop, Seattle, WA, 10,  359–370, 1994.
</mixed-citation></ref-html>
<ref-html id="bib1.bib6"><label>Brun et al.(1989)Brun, Martin, Simon, Gendre, and
Coléou</label><mixed-citation>
Brun, E., Martin, E., Simon, V., Gendre, C., and Coléou, C.: An energy
and mass model of snow cover suitable for operational avalanche forecasting,
J. Glaciol., 35, 333–342, <a href="https://doi.org/10.1017/S0022143000009254" target="_blank">https://doi.org/10.1017/S0022143000009254</a>, 1989.
</mixed-citation></ref-html>
<ref-html id="bib1.bib7"><label>Campbell et al.(2016)Campbell, Conger, Gould, Haegeli, Jamieson, and
Statham</label><mixed-citation>
Campbell, C., Conger, S., Gould, B., Haegeli, P., Jamieson, J. B., and Statham,
G.: Technical Aspects of Snow Avalanche Risk Management–Resources and
Guidelines for Avalanche Practitioners in Canada, Revelstoke, BC, Canada,
2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib8"><label>Canadian Avalanche Association(2016)</label><mixed-citation>
Canadian Avalanche Association: Observation Guidelines and Recording
Standards for Weather, Snowpack, and Avalanches, Tech. rep., Revelstoke, BC,
Canada, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib9"><label>Fierz(1998)</label><mixed-citation>
Fierz, C.: Field observation and modelling of weak-layer evolution, Ann.
Glaciol., 26, 7–13, <a href="https://doi.org/10.3189/1998AoG26-1-7-13" target="_blank">https://doi.org/10.3189/1998AoG26-1-7-13</a>, 1998.
</mixed-citation></ref-html>
<ref-html id="bib1.bib10"><label>Fierz et al.(2009)Fierz, Armstrong, Durand, Etchevers, Greene,
McClung, Nishimura, Satyawali, and Sokratov</label><mixed-citation>
Fierz, C., Armstrong, R. L., Durand, Y., Etchevers, P., Greene, E., McClung,
D. M., Nishimura, K., Satyawali, P., and Sokratov, S. A.: The International
Classification for Seasonal Snow on the Ground,  5, UNESCO/IHP,
available at: <a href="https://unesdoc.unesco.org/ark:/48223/pf000018646" target="_blank"/> (last access: 7 January 2021), 2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib11"><label>Fu et al.(2007)Fu, Keogh, Lau, Ratanamahatana, and Wong</label><mixed-citation>
Fu, A. W.-C., Keogh, E. J., Lau, L. Y. H., Ratanamahatana, C. A., and Wong, R.
C.-W. W.: Scaling and time warping in time series querying, VLDB J., 17,
899–921, <a href="https://doi.org/10.1007/s00778-006-0040-z" target="_blank">https://doi.org/10.1007/s00778-006-0040-z</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib12"><label>Giorgino(2009)</label><mixed-citation>
Giorgino, T.: Computing and Visualizing Dynamic Time Warping Alignments in
R: The dtw Package, J. Stat. Softw., 31, 7, <a href="https://doi.org/10.18637/jss.v031.i07" target="_blank">https://doi.org/10.18637/jss.v031.i07</a>,
2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib13"><label>Hagenmuller and Pilloix(2016)</label><mixed-citation>
Hagenmuller, P. and Pilloix, T.: A New Method for Comparing and Matching Snow
Profiles, Application for Profiles Measured by Penetrometers, Front. Earth
Sci., 4, 52, <a href="https://doi.org/10.3389/feart.2016.00052" target="_blank">https://doi.org/10.3389/feart.2016.00052</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib14"><label>Hagenmuller et al.(2018a)Hagenmuller, van Herwijnen,
Pielmeier, and Marshall</label><mixed-citation>
Hagenmuller, P., van Herwijnen, A., Pielmeier, C., and Marshall, H.-P.:
Evaluation of the snow penetrometer Avatech SP2, Cold Reg. Sci. Technol.,
149, 83–94, <a href="https://doi.org/10.1016/j.coldregions.2018.02.006" target="_blank">https://doi.org/10.1016/j.coldregions.2018.02.006</a>, 2018a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib15"><label>Hagenmuller et al.(2018b)Hagenmuller, Viallon,
Bouchayer, Teich, Lafaysse, and Vionnet</label><mixed-citation>
Hagenmuller, P., Viallon, L., Bouchayer, C., Teich, M., Lafaysse, M., and
Vionnet, V.: Quantitative Comparison of Snow Profiles, in: Proceedings of
the 2018 international snow science workshop, Innsbruck, AUT,   876–879,
available at: <a href="https://arc.lib.montana.edu/snow-science/item/2668" target="_blank"/> (last access: 7 January 2021),
2018b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib16"><label>Herla et al.(2020)</label><mixed-citation>
Herla, F.,  Horton, S.,  Mair, P.,  and Haegeli, P.:  Snow profile alignment and similarity assessment – Data and Code,
Open Science Framework (OSF), <a href="https://doi.org/10.17605/OSF.IO/9V8AD" target="_blank">https://doi.org/10.17605/OSF.IO/9V8AD</a>, 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib17"><label>Herla et al.(2021)</label><mixed-citation>
Herla, F.,  Horton, S.,  Mair, P.,  and Haegeli, P.:  sarp.snowprofile.alignment, available at: <a href="https://cran.r-project.&#xA;org/package=sarp.snowprofile.alignment" target="_blank"/>, last access: 7 January 2021.
</mixed-citation></ref-html>
<ref-html id="bib1.bib18"><label>Horton and Jamieson(2016)</label><mixed-citation>
Horton, S. and Jamieson, J. B.: Modelling hazardous surface hoar layers across
western Canada with a coupled weather and snow cover model, Cold Reg. Sci.
Technol., 128, 22–31, <a href="https://doi.org/10.1016/j.coldregions.2016.05.002" target="_blank">https://doi.org/10.1016/j.coldregions.2016.05.002</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib19"><label>Horton et al.(2014)Horton, Bellaire, and Jamieson</label><mixed-citation>
Horton, S., Bellaire, S., and Jamieson, J. B.: Modelling the formation of
surface hoar layers and tracking post-burial changes for avalanche
forecasting, Cold Reg. Sci. Technol., 97, 81–89,
<a href="https://doi.org/10.1016/j.coldregions.2013.06.012" target="_blank">https://doi.org/10.1016/j.coldregions.2013.06.012</a>, 2014.
</mixed-citation></ref-html>
<ref-html id="bib1.bib20"><label>Horton et al.(2015)Horton, Schirmer, and Jamieson</label><mixed-citation>
Horton, S., Schirmer, M., and Jamieson, B.: Meteorological, elevation, and slope effects on surface hoar formation, The Cryosphere, 9, 1523–1533, <a href="https://doi.org/10.5194/tc-9-1523-2015" target="_blank">https://doi.org/10.5194/tc-9-1523-2015</a>, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib21"><label>James et al.(2013)James, Witten, Hastie, and Tibshirani</label><mixed-citation>
James, G., Witten, D., Hastie, T., and Tibshirani, R.: Statistical Learning, Springer Texts in Statistics,  Springer New York, NY,
103, <a href="https://doi.org/10.1007/978-1-4614-7138-7" target="_blank">https://doi.org/10.1007/978-1-4614-7138-7</a>, 2013.
</mixed-citation></ref-html>
<ref-html id="bib1.bib22"><label>Jamieson(2006)</label><mixed-citation>
Jamieson, J. B.: Formation of refrozen snowpack layers and their role in slab
avalanche release, Rev. Geophys., 44, RG2001, <a href="https://doi.org/10.1029/2005RG000176" target="_blank">https://doi.org/10.1029/2005RG000176</a>,
2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib23"><label>Keogh and Ratanamahatana(2005)</label><mixed-citation>
Keogh, E. J. and Ratanamahatana, C. A.: Exact indexing of dynamic time
warping, Knowl. Inf. Syst., 7, 358–386, <a href="https://doi.org/10.1007/s10115-004-0154-9" target="_blank">https://doi.org/10.1007/s10115-004-0154-9</a>,
2005.
</mixed-citation></ref-html>
<ref-html id="bib1.bib24"><label>LaChapelle(1966)</label><mixed-citation>
LaChapelle, E. R.: Avalanche Forecasting – A Modern Synthesis, in:
International Association of Scientific Hydrology, Publication, 69,
410–417, 1966.
</mixed-citation></ref-html>
<ref-html id="bib1.bib25"><label>LaChapelle(1980)</label><mixed-citation>
LaChapelle, E. R.: The fundamental processes in conventional avalanche
forecasting, J. Glaciol., 26, 75–84, <a href="https://doi.org/10.3189/s0022143000010601" target="_blank">https://doi.org/10.3189/s0022143000010601</a>,
1980.
</mixed-citation></ref-html>
<ref-html id="bib1.bib26"><label>Lehning et al.(1999)Lehning, Bartelt, Brown, Russi, Stöckli,
and Zimmerli</label><mixed-citation>
Lehning, M., Bartelt, P., Brown, B., Russi, T., Stöckli, U., and
Zimmerli, M.: SNOWPACK model calculations for avalanche warning based upon a
new network of weather and snow stations, Cold Reg. Sci. Technol., 30,
145–157, <a href="https://doi.org/10.1016/S0165-232X(99)00022-1" target="_blank">https://doi.org/10.1016/S0165-232X(99)00022-1</a>, 1999.
</mixed-citation></ref-html>
<ref-html id="bib1.bib27"><label>Lehning et al.(2001)Lehning, Fierz, and Lundy</label><mixed-citation>
Lehning, M., Fierz, C., and Lundy, C.: An objective snow profile comparison
method and its application to SNOWPACK, Cold Reg. Sci. Technol., 33,
253–261, <a href="https://doi.org/10.1016/s0165-232x(01)00044-1" target="_blank">https://doi.org/10.1016/s0165-232x(01)00044-1</a>, 2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib28"><label>Lehning et al.(2002a)Lehning, Bartelt, Brown, and
Fierz</label><mixed-citation>
Lehning, M., Bartelt, P., Brown, B., and Fierz, C.: A physical SNOWPACK model
for the Swiss avalanche warning Part III: Meteorological forcing, thin layer
formation and evaluation, Cold Reg. Sci. Technol., 35, 169–184,
<a href="https://doi.org/10.1016/S0165-232X(02)00072-1" target="_blank">https://doi.org/10.1016/S0165-232X(02)00072-1</a>, 2002a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib29"><label>Lehning et al.(2002b)Lehning, Bartelt, Brown, Fierz, and
Satyawali</label><mixed-citation>
Lehning, M., Bartelt, P., Brown, B., Fierz, C., and Satyawali, P.: A physical
SNOWPACK model for the Swiss avalanche warning Part II. Snow microstructure,
Cold Reg. Sci. Technol., 35, 147–167, <a href="https://doi.org/10.1016/S0165-232X(02)00073-3" target="_blank">https://doi.org/10.1016/S0165-232X(02)00073-3</a>,
2002b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib30"><label>Lehning et al.(2004)Lehning, Fierz, Brown, and
Jamieson</label><mixed-citation>
Lehning, M., Fierz, C., Brown, B., and Jamieson, J. B.: Modeling snow
instability with the snow-cover model SNOWPACK, Ann. Glaciol., 38, 331–338,
<a href="https://doi.org/10.3189/172756404781815220" target="_blank">https://doi.org/10.3189/172756404781815220</a>, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib31"><label>Mair(2018)</label><mixed-citation>
Mair, P.: Modern Psychometrics with R, Use R!, Springer International
Publishing, Cham,  ISBN: 978-3-319-93175-3, <a href="https://doi.org/10.1007/978-3-319-93177-7" target="_blank">https://doi.org/10.1007/978-3-319-93177-7</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib32"><label>McClung(2002)</label><mixed-citation>
McClung, D. M.: The Elements of Applied Avalanche Forecasting, Part II: The
Physical Issues and the Rules of Applied Avalanche Forecasting, Nat.
Hazards, 26, 131–146, <a href="https://doi.org/10.1023/a:1015604600361" target="_blank">https://doi.org/10.1023/a:1015604600361</a>, 2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib33"><label>McClung and Schaerer(2006)</label><mixed-citation>
McClung, D. M. and Schaerer, P.: The avalanche handbook, 3rd Edn., Mountaineers Books,  Seattle, WA
ISBN: 978-0-89886-809-8,
2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib34"><label>Monti et al.(2014a)Monti, Schweizer, and
Fierz</label><mixed-citation>
Monti, F., Schweizer, J., and Fierz, C.: Hardness estimation and weak layer
detection in simulated snow stratigraphy, Cold Reg. Sci. Technol., 103,
82–90, <a href="https://doi.org/10.1016/j.coldregions.2014.03.009" target="_blank">https://doi.org/10.1016/j.coldregions.2014.03.009</a>, 2014a.
</mixed-citation></ref-html>
<ref-html id="bib1.bib35"><label>Monti et al.(2014b)Monti, Schweizer, Gaume, and
Fierz</label><mixed-citation>
Monti, F., Schweizer, J., Gaume, J., and Fierz, C.: Deriving snow stability
information from simulated snow cover stratigraphy, in: Proceedings of the
2014 international snow science workshop, Banff, AB,   465–469,
2014b.
</mixed-citation></ref-html>
<ref-html id="bib1.bib36"><label>Morin et al.(2020)Morin, Fierz, Horton, Bavay, Dumont, Hagenmuller,
Lafaysse, Mitterer, Monti, Olefs, Snook, Techel, Van Herwijnen, and
Vionnet</label><mixed-citation>
Morin, S., Fierz, C., Horton, S., Bavay, M., Dumont, M., Hagenmuller, P.,
Lafaysse, M., Mitterer, C., Monti, F., Olefs, M., Snook, J. S., Techel, F.,
Van Herwijnen, A., and Vionnet, V.: Application of physical snowpack
models in support of operational avalanche hazard forecasting: A status
report on current implementations and prospects for the future, Cold Reg.
Sci. Technol., 170, 1098–1107, <a href="https://doi.org/10.1016/J.COLDREGIONS.2019.102910" target="_blank">https://doi.org/10.1016/J.COLDREGIONS.2019.102910</a>,
2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib37"><label>Paparrizos and Gravano(2015)</label><mixed-citation>
Paparrizos, J. and Gravano, L.: k-shape: Efficient and accurate clustering of
time series, in: Proceedings of the 2015 ACM SIGMOD International Conference
on Management of Data,  ACM, 1855–1870, 2015.
</mixed-citation></ref-html>
<ref-html id="bib1.bib38"><label>Petitjean et al.(2011)Petitjean, Ketterlin, and
Gançarski</label><mixed-citation>
Petitjean, F., Ketterlin, A., and Gançarski, P.: A global averaging
method for dynamic time warping, with applications to clustering, Pattern
Recogn., 44, 678–693, <a href="https://doi.org/10.1016/j.patcog.2010.09.013" target="_blank">https://doi.org/10.1016/j.patcog.2010.09.013</a>, 2011.
</mixed-citation></ref-html>
<ref-html id="bib1.bib39"><label>R Core Team(2020)</label><mixed-citation>
R Core Team: R: A Language and Environment for Statistical Computing,
available at: <a href="https://www.r-project.org/" target="_blank"/> (last access: 7 January 2021), 2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib40"><label>Rabiner and Juang(1993)</label><mixed-citation>
Rabiner, L. and Juang, B.-H.: Fundamentals of speech processing,   Prentice Hall,  Englewood Cliffs, NJ, USA,
1993.
</mixed-citation></ref-html>
<ref-html id="bib1.bib41"><label>Ratanamahatana and Keogh(2004)</label><mixed-citation>
Ratanamahatana, C. A. and Keogh, E. J.: Everything you know about dynamic time
warping is wrong, in: Third workshop on mining temporal and sequential data,
Citeseer, 32, 2004.
</mixed-citation></ref-html>
<ref-html id="bib1.bib42"><label>Sakoe(1971)</label><mixed-citation>
Sakoe, H.: Dynamic-programming approach to continuous speech recognition, in:
1971 Proc. the International Congress of Acoustics, Budapest, 1971.
</mixed-citation></ref-html>
<ref-html id="bib1.bib43"><label>Sakoe and Chiba(1970)</label><mixed-citation>
Sakoe, H. and Chiba, S.: A similarity evaluation of speech patterns by dynamic
programming, in: Nat. Meeting of Institute of Electronic Communications
Engineers of Japan, p. 136, 1970.
</mixed-citation></ref-html>
<ref-html id="bib1.bib44"><label>Sakoe and Chiba(1978)</label><mixed-citation>
Sakoe, H. and Chiba, S.: Dynamic programming algorithm optimization for spoken
word recognition, IEEE T. Acoust. Speech, 26, 43–49, <a href="https://doi.org/10.1109/tassp.1978.1163055" target="_blank">https://doi.org/10.1109/tassp.1978.1163055</a>, 1978.
</mixed-citation></ref-html>
<ref-html id="bib1.bib45"><label>Sarda-Espinosa(2019)</label><mixed-citation>
Sarda-Espinosa, A.: dtwclust: Time Series Clustering Along with
Optimizations for the Dynamic Time Warping Distance,
available at: <a href="https://cran.r-project.org/package=dtwclust" target="_blank"/> (last access: 7 January 2021), 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib46"><label>Schaller et al.(2016)Schaller, Freitag, Kipfstuhl, Laepple,
Christian Steen-Larsen, and Eisen</label><mixed-citation>
Schaller, C. F., Freitag, J., Kipfstuhl, S., Laepple, T., Steen-Larsen, H. C., and Eisen, O.: A representative density profile of the North Greenland snowpack, The Cryosphere, 10, 1991–2002, <a href="https://doi.org/10.5194/tc-10-1991-2016" target="_blank">https://doi.org/10.5194/tc-10-1991-2016</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib47"><label>Schirmer et al.(2009)Schirmer, Lehning, and Schweizer</label><mixed-citation>
Schirmer, M., Lehning, M., and Schweizer, J.: Statistical forecasting of
regional avalanche danger using simulated snow-cover data, J. Glaciol., 55,
761–768, 2009.
</mixed-citation></ref-html>
<ref-html id="bib1.bib48"><label>Schirmer et al.(2010)Schirmer, Schweizer, and Lehning</label><mixed-citation>
Schirmer, M., Schweizer, J., and Lehning, M.: Statistical evaluation of local
to regional snowpack stability using simulated snow-cover data, Cold Reg.
Sci. Technol., 64, 110–118, <a href="https://doi.org/10.1016/j.coldregions.2010.04.012" target="_blank">https://doi.org/10.1016/j.coldregions.2010.04.012</a>, 2010.
</mixed-citation></ref-html>
<ref-html id="bib1.bib49"><label>Schweizer and Jamieson(2001)</label><mixed-citation>
Schweizer, J. and Jamieson, J. B.: Snow cover properties for skier triggering
of avalanches, Cold Reg. Sci. Technol., 33, 207–221,
<a href="https://doi.org/10.1016/S0165-232X(01)00039-8" target="_blank">https://doi.org/10.1016/S0165-232X(01)00039-8</a>, 2001.
</mixed-citation></ref-html>
<ref-html id="bib1.bib50"><label>Schweizer and Jamieson(2007)</label><mixed-citation>
Schweizer, J. and Jamieson, J. B.: A threshold sum approach to stability
evaluation of manual snow profiles, Cold Reg. Sci. Technol., 47, 50–59,
<a href="https://doi.org/10.1016/j.coldregions.2006.08.011" target="_blank">https://doi.org/10.1016/j.coldregions.2006.08.011</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib51"><label>Schweizer et al.(2006)Schweizer, Bellaire, Fierz, Lehning, and
Pielmeier</label><mixed-citation>
Schweizer, J., Bellaire, S., Fierz, C., Lehning, M., and Pielmeier, C.:
Evaluating and improving the stability predictions of the snow cover model
SNOWPACK, Cold Reg. Sci. Technol., 46, 52–59,
<a href="https://doi.org/10.1016/j.coldregions.2006.05.007" target="_blank">https://doi.org/10.1016/j.coldregions.2006.05.007</a>, 2006.
</mixed-citation></ref-html>
<ref-html id="bib1.bib52"><label>Schweizer et al.(2007)Schweizer, Kronholm, Jamieson, and
Birkeland</label><mixed-citation>
Schweizer, J., Kronholm, K., Jamieson, J. B., and Birkeland, K. W.: Review of
spatial variability of snowpack properties and its importance for avalanche
formation, Cold Reg. Sci. Technol., 51, 253–272,
<a href="https://doi.org/10.1016/j.coldregions.2007.04.009" target="_blank">https://doi.org/10.1016/j.coldregions.2007.04.009</a>, 2007.
</mixed-citation></ref-html>
<ref-html id="bib1.bib53"><label>Statham et al.(2018)Statham, Haegeli, Greene, Birkeland, Israelson,
Tremper, Stethem, McMahon, White, and Kelly</label><mixed-citation>
Statham, G., Haegeli, P., Greene, E., Birkeland, K. W., Israelson, C., Tremper,
B., Stethem, C., McMahon, B., White, B., and Kelly, J.: A conceptual model
of avalanche hazard, Nat. Hazards, 90, 663–691,
<a href="https://doi.org/10.1007/s11069-017-3070-5" target="_blank">https://doi.org/10.1007/s11069-017-3070-5</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib54"><label>Storm(2012)</label><mixed-citation>
Storm, I.: Public Avalanche Forecast Challenges: Canada's Large Data-Sparse
Regions, in: Proceedings, 2012 International Snow Science Workshop,
Anchorage, Alaska,  908–912, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib55"><label>Teich et al.(2019)Teich, Giunta, Hagenmuller, Bebi, Schneebeli, and
Jenkins</label><mixed-citation>
Teich, M., Giunta, A. D., Hagenmuller, P., Bebi, P., Schneebeli, M., and
Jenkins, M. J.: Effects of bark beetle attacks on forest snowpack and
avalanche formation – Implications for protection forest management, Forest
Ecol. Manage., 438, 186–203, <a href="https://doi.org/10.1016/j.foreco.2019.01.052" target="_blank">https://doi.org/10.1016/j.foreco.2019.01.052</a>, 2019.
</mixed-citation></ref-html>
<ref-html id="bib1.bib56"><label>Tormene et al.(2009)Tormene, Giorgino, Quaglini, and
Stefanelli</label><mixed-citation>
Tormene, P., Giorgino, T., Quaglini, S., and Stefanelli, M.: Matching
incomplete time series with dynamic time warping: an algorithm and an
application to post-stroke rehabilitation, Artif. Intell. Med., 45, 11–34,
<a href="https://doi.org/10.1016/j.artmed.2008.11.007" target="_blank">https://doi.org/10.1016/j.artmed.2008.11.007</a>, 2009.

</mixed-citation></ref-html>
<ref-html id="bib1.bib57"><label>Van Peursem et al.(2016)Van Peursem, Hendrikx, Birkeland, Miller,
and Gibson</label><mixed-citation>
Van Peursem, K., Hendrikx, J., Birkeland, K. W., Miller, D., and Gibson, C.:
Validation of a coupled weather and snowpack model across western montana,
in: Proceedings of the 2016 international snow science workshop,
Breckenridge, Montana, Breckenridge, CO, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib58"><label>Viallon-Galinier et al.(2020)Viallon-Galinier, Hagenmuller, and
Lafaysse</label><mixed-citation>
Viallon-Galinier, L., Hagenmuller, P., and Lafaysse, M.: Forcing and
evaluating detailed snow cover models with stratigraphy observations, Cold
Reg. Sci. Technol., 180, 103163, <a href="https://doi.org/10.1016/j.coldregions.2020.103163" target="_blank">https://doi.org/10.1016/j.coldregions.2020.103163</a>,
2020.
</mixed-citation></ref-html>
<ref-html id="bib1.bib59"><label>Vick(2002)</label><mixed-citation>
Vick, S. G.: Degrees of belief: Subjective probability and engineering
judgment, 472 pp.,
ISBN: 978-0784405987, ASCE Publications, Reston, VA, USA,
2002.
</mixed-citation></ref-html>
<ref-html id="bib1.bib60"><label>Vionnet et al.(2012)Vionnet, Brun, Morin, Boone, Faroux, Le Moigne,
Martin, and Willemet</label><mixed-citation>
Vionnet, V., Brun, E., Morin, S., Boone, A., Faroux, S., Le Moigne, P., Martin, E., and Willemet, J.-M.: The detailed snowpack scheme Crocus and its implementation in SURFEX v7.2, Geosci. Model Dev., 5, 773–791, <a href="https://doi.org/10.5194/gmd-5-773-2012" target="_blank">https://doi.org/10.5194/gmd-5-773-2012</a>, 2012.
</mixed-citation></ref-html>
<ref-html id="bib1.bib61"><label>Vionnet et al.(2016)Vionnet, Dombrowski-Etchevers, Lafaysse,
Quéno, Seity, and Bazile</label><mixed-citation>
Vionnet, V., Dombrowski-Etchevers, I., Lafaysse, M., Quéno, L., Seity,
Y., and Bazile, E.: Numerical Weather Forecasts at Kilometer Scale in the
French Alps: Evaluation and Application for Snowpack Modeling, J.
Hydrometeorol., 17, 2591–2614, <a href="https://doi.org/10.1175/jhm-d-15-0241.1" target="_blank">https://doi.org/10.1175/jhm-d-15-0241.1</a>, 2016.
</mixed-citation></ref-html>
<ref-html id="bib1.bib62"><label>Vionnet et al.(2018)Vionnet, Guyomarc'h, Lafaysse, Naaim-Bouvet,
Giraud, and Deliot</label><mixed-citation>
Vionnet, V., Guyomarc'h, G., Lafaysse, M., Naaim-Bouvet, F., Giraud, G., and
Deliot, Y.: Operational implementation and evaluation of a blowing snow
scheme for avalanche hazard forecasting, Cold Reg. Sci. Technol., 147,
1–10, <a href="https://doi.org/10.1016/j.coldregions.2017.12.006" target="_blank">https://doi.org/10.1016/j.coldregions.2017.12.006</a>, 2018.
</mixed-citation></ref-html>
<ref-html id="bib1.bib63"><label>Wang et al.(2013)Wang, Mueen, Ding, Trajcevski, Scheuermann, and
Keogh</label><mixed-citation>
Wang, X., Mueen, A., Ding, H., Trajcevski, G., Scheuermann, P., and Keogh,
E. J.: Experimental comparison of representation methods and distance
measures for time series data, Data Min. Knowl. Disc., 26, 275–309,
<a href="https://doi.org/10.1007/s10618-012-0250-5" target="_blank">https://doi.org/10.1007/s10618-012-0250-5</a>, 2013.
</mixed-citation></ref-html>--></article>
