1 | EstimateNPP(state, parms)
|
state |
|
parms |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (state, parms)
{
alpha <- parms[["alpha"]]
gDM_mol <- parms[["gDM_mol"]]
Y <- parms[["Y"]]
phi.pa <- state[["phi.pa"]]
fT <- state[["fT"]]
fF <- state[["fF"]]
fCalpha <- state[["fCalpha"]]
fN <- state[["fN"]]
PhysMod <- state[["PhysMod"]]
alphaC <- alpha * fT * fF * fCalpha * fN * PhysMod
GPP <- alphaC * gDM_mol * phi.pa/100
NPP <- Y * GPP
state[c("alphaC", "GPP", "NPP")] <- c(alphaC, GPP, NPP)
return(state)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.