distrib: compute snow distribution accoding to nvar

View source: R/distrib.r

distribR Documentation

compute snow distribution accoding to nvar

Description

compute snow distribution in COSERO according to the parameter nvar

Usage

distrib(SWE, nvar)

Arguments

SWE

amount of (new) snow to be dirstibuted over a grid cell

nvar

parameter from COSERO

Details

formula : SWE(IKL) = exp(m + s * SWE)

m = mean(SWE) s = sd(SWE)

nvar = variance of SWE

Only apply if 5 snow classes are used!

Value

A vector of length 5 with the snow distribution

Author(s)

Simon Frey

See Also

read_COSERO_par for reading a COSERO parameter file

Examples

    distrib(10,5)
    distrib(10,0)

freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.