Learn R Programming

airGR (version 1.0.15.2)

TransfoParam_CemaNeige: Transformation of the parameters of the CemaNeige module

Description

Function which transforms model parameters of the CemaNeige module (from raw to transformed parameters and vice versa).

Usage

TransfoParam_CemaNeige(ParamIn, Direction)

Arguments

ParamIn

[numeric] matrix of parameter sets (sets in line, parameter values in column)

Direction

[character] direction of the transformation: use "RT" for Raw -> Transformed and "TR" for Transformed -> Raw

Value

ParamOut [numeric] matrix of parameter sets (sets in line, parameter values in column)

See Also

TransfoParam, TransfoParam_GR4J, TransfoParam_GR5J, TransfoParam_GR6J

Examples

Run this code
# NOT RUN {
library(airGR)

## transformation Raw -> Transformed for the CemaNeige module
Xraw  <- matrix(c(+0.19, +1.73,
                  +0.39, +2.51,
                  +0.74, +4.06),
                  ncol = 2, byrow = TRUE)
Xtran <- TransfoParam_CemaNeige(ParamIn = Xraw , Direction = "RT")

## transformation Transformed -> Raw for the CemaNeige module
Xtran <- matrix(c(-6.26, +0.55,
                  -2.13, +0.92,
                  +4.86, +1.40),
                  ncol = 2, byrow = TRUE)
Xraw  <- TransfoParam_CemaNeige(ParamIn = Xtran, Direction = "TR")
# }

Run the code above in your browser using DataLab