ThreepParallelModel14(SoilR)
ThreepParallelModel14()所属R语言包:SoilR
Implementation of a three-pool C14 model with parallel structure
三池C14与平行结构模型的实现
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function creates a model for two independent (parallel) pools.
这个函数创建一个模型,两个独立的(水货)池。
用法----------Usage----------
参数----------Arguments----------
参数:t
A vector containing the points in time where the solution is sought. It must be specified within the same period for which the Delta 14 C of the atmosphere is provided. The default period in the provided dataset C14Atm_NH is 1900-2010.
一种向量,包含的点的时间寻求溶液。它必须指定在同一时间内Delta14 C的气氛。提供的数据集C14Atm_NH默认时间为1900年至2010年。
参数:ks
A vector of length 3 containing the decomposition rates for the 3 pools.
一个向量的长度为3的分解速率为3个游泳池。
参数:C0
A vector of length 3 containing the initial amount of carbon for the 3 pools.
长度为3的一种向量,含有碳的初始量为3个游泳池。
参数:In
A scalar or a data.frame object specifying the amount of litter inputs by time.
一个标量或数据框对象指定的凋落物输入量。
参数:gam1
A scalar representing the partitioning coefficient, i.e. the proportion from the total amount of inputs that goes to pool 1.
标量的分配系数,即从“池1的总投入量的比例。
参数:gam2
A scalar representing the partitioning coefficient, i.e. the proportion from the total amount of inputs that goes to pool 2.
标量的分配系数,即从“池2的总投入量的比例。
参数:xi
A scalar or a data.frame specifying the external (environmental and/or edaphic) effects on decomposition rates.
一个标量或数据框指定的外部(环境和/或土壤)的分解率的影响。
参数:FcAtm
A Data Frame object consisting of a function describing the fraction of C_14 in per mille.
一个数据框的对象组成的一个函数的分数C_14每千。
参数:lambda
Radioactive decay constant. By default lambda=-0.0001209681 y^-1 . This has the side effect that all your time related data are treated as if the time unit was year.
放射性衰变常数。默认情况下λ= -0.0001209681 Y ^ -1。这所有的时间相关数据的时间单位,均应被视为是今年的副作用。
参数:lag
A positive scalar representing a time lag for radiocarbon to enter the system.
一个正标量进行放射性碳进入系统的时间滞后。
参数:solver
A function that solves the system of ODEs. This can be euler or ode or any other user provided function with the same interface.
的功能,解决了系统的微分方程。这可能是euler或ode或任何其他用户提供的函数具有相同的接口。
值----------Value----------
A Model Object that can be further queried
一个模型对象,可以进一步查询
(作者)----------Author(s)----------
Carlos A. Sierra <csierra@bgc-jena.mpg.de>, Markus Mueller <mamueller@bgc-jena.mpg.de>
参见----------See Also----------
TwopSeriesModel14, TwopFeedbackModel14
TwopSeriesModel14,TwopFeedbackModel14
实例----------Examples----------
data(C14Atm_NH)
#Fc=TimeMap.from.Dataframe(C14Atm_NH)[FC = TimeMap.from.Dataframe,(C14Atm_NH)]
years=seq(1901,2009,by=0.5)
LitterInput=700
Ex=ThreepParallelModel14(t=years,ks=c(k1=1/2.8, k2=1/35, k3=1/100),C0=c(200,5000,500), In=LitterInput, gam1=0.7, gam2=0.1, FcAtm=C14Atm_NH,lag=2)
R14m=getTotalReleaseFluxC14CRatio(Ex)
C14m=getTotalC14CRatio(Ex)
C14t=getSoilC14Fraction(Ex)
par(mfrow=c(2,1))
plot(C14Atm_NH,type="l",xlab="Year",ylab="Delta 14C (per mil)",xlim=c(1940,2010))
lines(years, C14t[,1], col=4)
lines(years, C14t[,2],col=4,lwd=2)
lines(years, C14t[,3],col=4,lwd=3)
legend("topright",c("Delta 14C Atmosphere", "Delta 14C pool 1", "Delta 14C pool 2", "Delta 14C pool 3"),lty=rep(1,4),col=c(1,4,4,4),lwd=c(1,1,2,3),bty="n")
plot(C14Atm_NH,type="l",xlab="Year",ylab="Delta 14C (per mil)",xlim=c(1940,2010))
lines(years,C14m,col=4)
lines(years,R14m,col=2)
legend("topright",c("Delta 14C Atmosphere","Delta 14C SOM", "Delta 14C Respired"),lty=c(1,1,1), col=c(1,4,2),bty="n")
par(mfrow=c(1,1))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|