R/fT.Demeter.R

#
# vim:set ff=unix expandtab ts=2 sw=2:
fT.Demeter<-structure(
  function #Effects of temperature on decomposition rates according to the DEMETER model
    ### Calculates the effects of temperature on decomposition rates according to the DEMETER model.
    ##references<< Foley, J. A. (1995), An equilibrium model of the terrestrial carbon budget, Tellus B, 47(3), 310-319.

    (Temp,     ##<< A scalar or vector containing values of temperature for which the effects on decomposition rates are calculated
     Q10=2     ##<< A scalar. Temperature coefficient Q10
     )
   {
     exp((log(Q10)/10)*(Temp-20))
      ### A scalar or a vector containing the effects of temperature on decomposition rates (unitless).
    }
    ,
    ex=function(){
      Temperature=0:50
      plot(Temperature,fT.Demeter(Temperature),type="l",ylab="f(T) (unitless)", 
           main="Effects of temperature on decomposition rates according to the DEMETER model")
     }
)

Try the SoilR package in your browser

Any scripts or data that you put into this service are public.

SoilR documentation built on May 4, 2017, 9:08 p.m.