Apply or reverse transformation of GR4J parameters
gr4j.transformpar(pars, back = FALSE)
named vector or list of parameters, e.g. as provided by
coef.hydromad
.
Whether to transform or untransform (reverse) the parameters.
Named list of transformed/untransformed parameters, depending on
value of back
.
gr4j.transformpar(c(hydromad.getOption("gr4j"), hydromad.getOption("gr4jrouting")))
#> $x1
#> [1] 4.605170 7.090077
#>
#> $x2
#> [1] -2.312438 1.818446
#>
#> $x3
#> [1] 2.995732 5.703782
#>
#> $x4
#> [1] -0.5108256 0.8754687
#>
#> $etmult
#> [1] 1
#>
gr4j.transformpar(c(x1 = 150, x2 = 2, x3 = 50, x4 = 2), back = FALSE)
#> $x1
#> [1] 5.010635
#>
#> $x2
#> [1] 1.443635
#>
#> $x3
#> [1] 3.912023
#>
#> $x4
#> [1] 0.4054651
#>