Introduction

The package was developed with the aim to create a dataset of SWE (Snow Water Equivalent) for the Euregio area ( link). The idea was to use the data collected by snow observer and shared with Local Avalanche Service in the 3 region, Trentino (I), South Tyrol (I) and Tyrol (O) to have timeseries of SWE for several points. The package was developed in the framework of project Cryomon Sci-Pro. The partners are Eurac Research (South Tyrol), University of Trento (Trentino) and University of Innsbruck (Tyrol).

Description

We collect data of snowpit from MeteoTrentino, developing an R package to process the data and extract SWE timeseries.

Snowpit, done following mod.3-4, AINEVA (Cagnati, A., 2003), contain data of layers characteristic (grain type, size, ...) and physical parameter (liquid water content,density, ...).

These data are organized into 2 files, the first contatins the stratigraphy for each snowpit done during the season (possible more than one winter season), the second contain the data of density measured (horizontal sampling) for each layer for each snowpit. There are some cases that the density are not measured, for examples for thin layers the sampler is too large. With the following functions we merge the stratigraphy file with the density file, reconstruct missing density with a method based on grain type and layer hardness (Valt M. & Cagnati A., 2005) and aggregate each profile to extract information about snow height, mean snow density and snow water equivalent.

Package structure

Functions

The package include these five functions:

  1. file_config_xml_parsing: the function read and parse an external files that contain the relative path, and the key parameter used in the example scripts.

  2. combine_stratigraphy_density:the function merge stratigraphy and density data. The algorithm check data and station in the 2 input files and assign to the proper layer the density measurement.

  3. calculate_density_matrix_grain_hardness: the function create a coupling matrix to estimate snow density from grain type and layer hardness usign the method proposed by Valt (Valt M. & Cagnati A., 2005). The algorithm calculate the average, the standard deviation and the sample of density for each coupling of values of grain type and hardness. Only layers with density measured are used in this statistics.

  4. calculator_density_and_SWE: the function reconstruct missing snow density from grain type and hardness usign a coupling matrix. This matrix could be calculated (and evaluated) with the function above or in can be found in literature (Valt M. & Cagnati A.). For each layer the function calculate snow water equivalent, starting from density and thickness.

  5. aggregate_profiles: the function aggregate each profile calculating the snow height, the mean snow density and the snow water equivalent.

Folders structure

Create the following folders structure:

The folders highlighted with bold character must be called as in the schema above.

Example_scripts

The functions above are used in the following scripts, given an example of usage and process of snow profiles.

Before runs each script set working directory. From Rstudio select Session --> Set Working Directory --> Choose Directory and select File_config path. All the paths used in script and in file_config.xml depending from File_config path.

Here we provide a short description of examples.

References



bridachristian/SnowProfileProcessing documentation built on May 16, 2019, 3:09 p.m.