Skip to content

Commit f2ea911

Browse files
authored
Merge pull request #86 from PredictiveEcology/suz-params
calcRootC parameter updates
2 parents d13a356 + ad5a1e7 commit f2ea911

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description: Implementation of several components of the Carbon Budget Model of
55
Canadian Forest Service (v3).
66
URL:
77
https://github.com/PredictiveEcology/CBMutils
8-
Version: 2.5.4.9000
8+
Version: 2.5.4.9001
99
Authors@R: c(
1010
person("Céline", "Boisvenue", email = "celine.boisvenue@nrcan-rncan.gc.ca", role = c("aut", "cre")),
1111
person("Alex M", "Chubaty", email = "achubaty@for-cast.ca", role = c("aut"), comment = c(ORCID = "0000-0001-7146-8135")),

R/CBM-tools_calcRootC.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ utils::globalVariables(c(
1515
#' @param b_hw "b" value for hardwood root biomass
1616
#' @param a_frp "a" value for fine root proportion
1717
#' @param b_frp "b" value for fine root proportion
18+
#' @param c_frp "c" value for fine root proportion
1819
#' @param biomassToCarbonRate Conversion factor of biomass to carbon
1920
#'
2021
#' @references
@@ -29,7 +30,7 @@ utils::globalVariables(c(
2930
calcRootC <- function(aboveGroundC, sw_hw,
3031
a_sw = 0.222, b_sw = 1,
3132
a_hw = 1.576, b_hw = 0.615,
32-
a_frp = 0.072, b_frp = 0.354,
33+
a_frp = 0.072, b_frp = 0.354, c_frp = -0.060212,
3334
biomassToCarbonRate = 0.5){
3435

3536
aboveGroundColumns <- c("Merch", "Foliage", "Other")
@@ -43,7 +44,7 @@ calcRootC <- function(aboveGroundC, sw_hw,
4344
totAGC <- rowSums(aboveGroundC[, ..aboveGroundColumns])
4445

4546
# Convert Mg/ha of Carbon to Mg/ha of biomass
46-
totAGB <- totAGC * 2
47+
totAGB <- totAGC / biomassToCarbonRate
4748

4849
# Calculate root total biomass
4950
if(!all(sw_hw %in% c(1,0))) {
@@ -55,7 +56,7 @@ calcRootC <- function(aboveGroundC, sw_hw,
5556
a_hw * totAGB^b_hw)
5657

5758
# Calculate the proportion of fine roots
58-
fineRootProp <- a_frp + b_frp * exp(-0.060212 * rootTotBiom)
59+
fineRootProp <- a_frp + b_frp * exp(c_frp * rootTotBiom)
5960

6061

6162
# Calculate the proportion of fine roots

man/calcRootC.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)