example_TransfoParam_GR6J.R 737 Bytes
Newer Older
Delaigue Olivier's avatar
Delaigue Olivier committed
1
2
require(airGR)

Delaigue Olivier's avatar
Delaigue Olivier committed
3
4
## transformation Raw->Transformed for the GR6J model
    Xraw  <- matrix( c( 221.41, -1.18,  27.11, 1.37, -0.18,  20.09,
Delaigue Olivier's avatar
Delaigue Olivier committed
5
6
7
                        347.23, -0.52,  60.34, 1.76,  0.02,  54.60,
                        854.06,  0.52, 148.41, 2.34,  0.22, 148.41),
                        ncol=6,byrow=TRUE)
Delaigue Olivier's avatar
Delaigue Olivier committed
8
    Xtran <- TransfoParam_GR6J(ParamIn=Xraw ,Direction="RT")
Delaigue Olivier's avatar
Delaigue Olivier committed
9

Delaigue Olivier's avatar
Delaigue Olivier committed
10
## transformation Transformed->Raw for the GR6J model
Delaigue Olivier's avatar
Delaigue Olivier committed
11
12
13
14
    Xtran <- matrix( c( +3.60, -1.00, +3.30, -9.10, -0.90, +3.00,
                        +3.90, -0.50, +4.10, -8.70, +0.10, +4.00,
                        +4.50, +0.50, +5.00, -8.10, +1.10, +5.00),
                        ncol=6,byrow=TRUE)
Delaigue Olivier's avatar
Delaigue Olivier committed
15
    Xraw  <- TransfoParam_GR6J(ParamIn=Xtran,Direction="TR")