The script Snow_detection_TS_PAR.R in folder inst analyzes Soil Temperature (TS) and Photosynthetically active radiation (PAR) to extract snow presence near the station. The algoritm improve results obtained only with one of these elements. The algorithm check if soil temperature (@ 0 cm) has high or low value and how it is the daily amplitude. At the same time it check the daily ratio between PAR @ 2 m and @ 0 cm (soil level) and the daily maximum at soil level. Combining these infomarmations we can determinate the presence/absence of snow without ultrasonic snow sensor.
Section 1: in this section you select input file to process. Input files are in folder data/Input data. After the selection the script import data as a zoo series
Section 2: here you set inputs used to run models used. You should assign to each variable the corresponding column names of zoo_data:
You can also tune these moldel parameters:
Running row by row this section the algorithm plots the data selected for an help and a fast visual inpsection.
Section 3: this section run different models and combining results. Two different models are combined in a third. Here we explain how single models is built and how they are combined.
TS: Snow presence Soil Temp. This model analyse only soil temperaute at 0 cm and indicate snow presence (flag = 1) every day that have at the same time a small daily mean and a small daily amplitude
PAR: Snow presence PAR. This model analyse only phar sensors (PHotosynthetically Active Radiation sensors) at soil level (phar_down) and on weather station (phar_up). It indicate snow presence (flag = 1) every day that have at the same time small radiation incoming that hit the soil passing through grass and a small ratio (that suggest that a lot of incoming radiation is blocking by snowpack)
TS+PAR: Snow presence PAR + Soil Temp. This model combine the previous 2 in a smart way. We observe that the model TS are not able to find properly the early snowfall, probably due thermal inerthia of soil. Instead PAR perform better, it is observed an important decreasing on radiation at soil level is sufficient a few centimeter of snow. During spring, the two models perform at the opposite, the PAR is affected by high radiation that penetrate on melting snow. Instead the snow maintains the soil temperature constant until the complete snow melting (melting snow and water has a temperature near 0 deg C). To develop this model we take into account these facts and elaborate an algorithm that consider snow cover the events that staring with model PAR and ending with ST. For a stable results we assume that PAR have to detect snow for at least 2 days consecutively
Section 4: Save output as .RData for a visualizzation tool and as .csv to create a table
INPUT:
OUTPUT:
Snow_presence_file.RData: in folder data/Output/Snow_Detection_RData/ an .RData file which contains three zoo time series of:
Snow_presence_file.csv: in folder data/Output/Snow_Detection/ a.csv file file which contains three zoo time series of:
Open script Snow_detection_TS_PAR.R and:
Teubner, I.E., L. Haimberger, and M. Hantel, 2015: Estimating Snow Cover Duration from Ground Temperature. J. Appl. Meteor. Climatol., 54, 959-965, https://doi.org/10.1175/JAMC-D-15-0006.1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.