The script Visualize_Snow_detection_TS_PAR.R in folder inst plot using dygraph the time series of snow height (HS) (if available) grey line with the classification of snow presence by models. Green represents snow presence period obtained by Soil Temperature (TS) and Photosynthetically active radiation (PAR), blue only PAR, red only TS
Section 1: in this section the algorithm load data of station selected in section INPUT
Section 2: here the script calibrate snow height signal (if available) using an external file Snow_Depth_Calibration_file.csv in data/Snow_Depth_Calibration/ filled with real snow surveys (field campaign) or virtual snow depth calibration (visual inspection of snow height signal are set as 0 cm at the end of winter season)
Section 3: hte script plot time series of snow height (calibrated or not) and results of different snow detection models using dygraphs. We apply some checks to plot HS with or without calibration (select in INPUT) and to avoid problems if the snow height sensor is not installed on the station selected.
On the plot we can see:
Plot1: Snow detection results of algorithm Snow_detection_TS_PAR.R. Different values for different models are only for visualization. The output are 0 -> no snow , 1 -> snow for each models. (more details):
Example
Open script Visualize_Snow_detection_TS_PAR.R and:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.