initStateModMeta: initStateModMeta

Description Usage Arguments Value Author(s) Examples

View source: R/ModMeta.R

Description

Creating initial state variables for Basic carbon nitrogen cycling model.

Usage

1
initStateModMeta(xc12, cn, iR, modMeta)

Arguments

xc12

numeric vector: 12C mass for each pool

If names are given these must comprise codemodMeta$rowNames.

cn

numeric vector: carbon to nitrogen ratio for each pool

If vector has length one, the same ratio is assumed for all pools.

If names are given, these must comprise codemodMeta$rowNames

iR

numeric matrix (nPools, nIsotopes): atomic ratios

For others be aware of the adjusted units to avoid bigger numerical errors.

If it is a vector (nIsotopes), the same atomic ratio is assumed for all pools

If colnames/names are given they comprise codemodMeta$colNames

Default 1 is added for columns c12 and n15 (first columen in modMeta$csts$cis or $nis repectively if not given with iR.

modMeta

model meta information, see modMetaICBMDemo

Value

Numeric matrix (nPool, nIsotopes) of state variable mass.

Author(s)

Thomas Wutzler

Examples

1

twModMeta documentation built on May 2, 2019, 5:24 p.m.