Package Package airGR airGR License License GPL 2 GPL 2

1 Introduction

1.1 Scope

Rainfall-runoff models that include a snow accumulation and melt module are still often calibrated using only discharge observations. This can result in poor snow modeling as the swnow module parameters can distorted in order to allow skilful discharge simulation.

After the work of Riboust et al. (2019), we propose now in airGR an improved version of the degree-day CemaNeige snow and accumulation module. This new version is based on a more accurate representation of the relationship that exists at the basin scale between the Snow Water Equivalent (SWE) and the Snow Cover Area (SCA). To do so, a linear SWE-SCA hysteresis, which represents the fact that snow accumulation is rather homogeneous on the basin and snow melt is more heterogeneous, was implemented.

This new CemaNeige version has two more parameters to calibrate. It also presents the advantage of allowing using satellite snow data to constrain the calibration in addition to discharge. Riboust et al. (2019) show that while the simulated discharge is not significantly improved, the snow simulation is much improved. In addition, they show that the model is more robust (i.e. transferable in time) in terms of discharge, which has many implications for climate change impact studies.

The configuration that was identified as optimal by Riboust et al. (2019) includes a CemaNeige module run on 5 elevation bands and an objective function determine by a composite function of KGE’ calculated on discharge (75 % weight) and KGE’ calculated on each elevation band (5 % for each).

In this page, we show how to use and calibrate this new CemaNeige version.

1.2 Data preparation

We load an example data set from the package. Please note that this data set includes MODIS data that was pre-calculated for 5 elevation bands and for which days with few data (more than 40 % cloud coverage) were assigned as missing values.

1.3 loading catchment data

##      DatesR                          P              T        
##  Min.   :1999-01-01 00:00:00   Min.   : 0.0   Min.   :-16.6  
##  1st Qu.:2001-11-23 06:00:00   1st Qu.: 0.0   1st Qu.: -2.1  
##  Median :2004-10-15 12:00:00   Median : 0.1   Median :  3.1  
##  Mean   :2004-10-15 12:00:00   Mean   : 2.8   Mean   :  3.1  
##  3rd Qu.:2007-09-07 18:00:00   3rd Qu.: 2.3   3rd Qu.:  8.6  
##  Max.   :2010-07-31 00:00:00   Max.   :82.3   Max.   : 18.2  
##                                                              
##        E             Qls              Qmm           SCA1     
##  Min.   :0.00   Min.   :  5698   Min.   : 0    Min.   :0     
##  1st Qu.:0.20   1st Qu.: 20710   1st Qu.: 1    1st Qu.:0     
##  Median :0.80   Median : 32041   Median : 1    Median :0     
##  Mean   :1.16   Mean   : 47487   Mean   : 2    Mean   :0     
##  3rd Qu.:2.00   3rd Qu.: 55559   3rd Qu.: 2    3rd Qu.:0     
##  Max.   :4.00   Max.   :433747   Max.   :16    Max.   :1     
##                 NA's   :397      NA's   :397   NA's   :2058  
##       SCA2           SCA3           SCA4           SCA5     
##  Min.   :0      Min.   :0      Min.   :0      Min.   :0     
##  1st Qu.:0      1st Qu.:0      1st Qu.:0      1st Qu.:0     
##  Median :0      Median :0      Median :0      Median :0     
##  Mean   :0      Mean   :0      Mean   :0      Mean   :0     
##  3rd Qu.:1      3rd Qu.:1      3rd Qu.:1      3rd Qu.:1     
##  Max.   :1      Max.   :1      Max.   :1      Max.   :1     
##  NA's   :2211   NA's   :2266   NA's   :2349   NA's   :2456

2 Calibration and evaluation of the new CemaNeige module

In order to use the Linear Hysteresis, a new argument (IsHyst) is added in the CreateRunOptions() and CreateCalibOptions() functions and has to be set to TRUE.

In order to calibrate and assess the model performance, we will follow the recommendations of Riboust et al. (2019). This is now possible in airGR with the added functionality that permits calculating composite criteria by combining different metrics.

We can now calibrate the model.

## Grid-Screening in progress (0% 20% 40% 60% 80% 100%)
##   Screening completed (6561 runs)
##       Param =  432.681,   -0.020,   83.096,    2.384,    0.002,    3.787,   15.000,    0.850
##       Crit. Composite    = 0.8139
## Steepest-descent local search in progress
##   Calibration completed (107 iterations, 8248 runs)
##       Param =  419.893,    0.517,  275.687,    1.345,    0.632,    3.864,   16.911,    0.472
##       Crit. Composite    = 0.8995
##  Formula: sum(0.75 * KGE2[Q], 0.05 * KGE2[SCA], 0.05 * KGE2[SCA],
##           0.05 * KGE2[SCA], 0.05 * KGE2[SCA], 0.05 * KGE2[SCA])

Now we can run it on the calibration period and assess it.

Find below the performance of the model over the calibration period.

## List of 7
##  $ CritValue      : num 0.899
##  $ CritName       : chr "Composite"
##  $ CritBestValue  : num 1
##  $ Multiplier     : num -1
##  $ Ind_notcomputed: NULL
##  $ CritCompo      :List of 3
##   ..$ MultiCritValues : Named num [1:6] 0.919 0.705 0.847 0.88 0.874 ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritNames  : Named chr [1:6] "KGE2[Q]" "KGE2[SCA]" "KGE2[SCA]" "KGE2[SCA]" ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritWeights: Named num [1:6] 0.75 0.05 0.05 0.05 0.05 0.05
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##  $ MultiCrit      :List of 6
##   ..$ IC1:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC2:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC3:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC4:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC5:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC6:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##  - attr(*, "class")= chr [1:2] "Compo" "ErrorCrit"

Now we can run the model on the validation period and assess it.

Find below the performance of the model over the validation period.

## List of 7
##  $ CritValue      : num 0.903
##  $ CritName       : chr "Composite"
##  $ CritBestValue  : num 1
##  $ Multiplier     : num -1
##  $ Ind_notcomputed: NULL
##  $ CritCompo      :List of 3
##   ..$ MultiCritValues : Named num [1:6] 0.916 0.63 0.876 0.945 0.962 ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritNames  : Named chr [1:6] "KGE2[Q]" "KGE2[SCA]" "KGE2[SCA]" "KGE2[SCA]" ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritWeights: Named num [1:6] 0.75 0.05 0.05 0.05 0.05 0.05
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##  $ MultiCrit      :List of 6
##   ..$ IC1:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC2:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC3:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC4:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC5:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC6:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##  - attr(*, "class")= chr [1:2] "Compo" "ErrorCrit"

3 Comparison with the performance of the initial CemaNeige version

Here we use the same InputsModel object and calibration and validation periods. However, we have to redefine the way we run the model (RunOptions argument), calibrate and assess it (InputsCrit argument). The objective function is only based on KGE’(Q). Note how we set the IsHyst argument to FALSE in the CreateRunOptions() and the CreateCalibOptions() functions.

We can now calibrate the model.

## Grid-Screening in progress (0% 20% 40% 60% 80% 100%)
##   Screening completed (729 runs)
##       Param =  432.681,   -0.020,   83.096,    2.384,    0.002,    3.787
##       Crit. KGE2[Q]      = 0.7830
## Steepest-descent local search in progress
##   Calibration completed (50 iterations, 1307 runs)
##       Param =  835.709,    0.400,  171.501,    1.330,    0.869,    4.103
##       Crit. KGE2[Q]      = 0.9370

And run it over the calibration and validation periods.

In order to assess the model performance over the two periods, we will use the InputsCrit objects prepared before, which allow assessing also the performance in terms of snow simulation.

We can check the performance over the calibration and the validation period.

## List of 7
##  $ CritValue      : num 0.836
##  $ CritName       : chr "Composite"
##  $ CritBestValue  : num 1
##  $ Multiplier     : num -1
##  $ Ind_notcomputed: NULL
##  $ CritCompo      :List of 3
##   ..$ MultiCritValues : Named num [1:6] 0.937 0.147 0.48 0.65 0.707 ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritNames  : Named chr [1:6] "KGE2[Q]" "KGE2[SCA]" "KGE2[SCA]" "KGE2[SCA]" ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritWeights: Named num [1:6] 0.75 0.05 0.05 0.05 0.05 0.05
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##  $ MultiCrit      :List of 6
##   ..$ IC1:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC2:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC3:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC4:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC5:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC6:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##  - attr(*, "class")= chr [1:2] "Compo" "ErrorCrit"
## List of 7
##  $ CritValue      : num 0.773
##  $ CritName       : chr "Composite"
##  $ CritBestValue  : num 1
##  $ Multiplier     : num -1
##  $ Ind_notcomputed: NULL
##  $ CritCompo      :List of 3
##   ..$ MultiCritValues : Named num [1:6] 0.878 0.159 0.363 0.495 0.593 ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritNames  : Named chr [1:6] "KGE2[Q]" "KGE2[SCA]" "KGE2[SCA]" "KGE2[SCA]" ...
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##   ..$ MultiCritWeights: Named num [1:6] 0.75 0.05 0.05 0.05 0.05 0.05
##   .. ..- attr(*, "names")= chr [1:6] "IC1" "IC2" "IC3" "IC4" ...
##  $ MultiCrit      :List of 6
##   ..$ IC1:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC2:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC3:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC4:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC5:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##   ..$ IC6:List of 7
##   .. ..- attr(*, "class")= chr [1:2] "KGE2" "ErrorCrit"
##  - attr(*, "class")= chr [1:2] "Compo" "ErrorCrit"

We can see above that the performance of the initial model is slightly better than the new one over the calibration period in terms of discharge, but also that the new version calibrated using SCA provides better performance in terms of snow. However, over the validation period, we see that the discharge simulated by the new version brings better performance (in addition to improved SCA also). This shows the interests of the combined use of a linear hysteresis and of SCA data for calibration in CemaNeige.

References

Riboust, Philippe, Guillaume Thirel, Nicolas Le Moine, and Pierre Ribstein. 2019. “Revisiting a Simple Degree-Day Model for Integrating Satellite Data: Implementation of Swe-Sca Hystereses.” Journal of Hydrology and Hydromechanics 67 (1): 70–81. https://doi.org/10.2478/johh-2018-0004.