Description Usage Arguments Value Author(s) Examples
Calculate the benthic oxygen demand of a coastal sediment for given conditions.
1 | BOD(z, NPP, C.flux.extra = 0)
|
z |
Water depth (m) |
NPP |
Net primary production (mol C/[m2 y]) |
C.flux.extra |
Additional organic carbon fluxes to sediments (mol C/[m2 y]) |
Returns benthic oxygen demand of sediment (mol O2/[m2 y])
Daniel C. Reed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ##---- 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 (z, NPP, T, C.flux.extra = 0)
{
C.flux.sed <- C.flux(NPP, z) + C.flux.extra
Oxygen.demand <- (((77/60) * p.remin(z) - (17/60)) * C.flux.sed)
if (any(NPP <= 0))
warning(paste("Net primary production is ", NPP[NPP <=
0], " - must be positive.\n", sep = ""))
if (any(z <= 0))
warning(paste("Water depth is ", z[z <= 0], " - must be positive.\n",
sep = ""))
return(Oxygen.demand)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.