Skip to content
Snippets Groups Projects
Commit de462155 authored by Fabian Stenzel's avatar Fabian Stenzel
Browse files

added new variable biocol_abs_frac as overtime biocol, but taking the absolute...

added new variable biocol_abs_frac as overtime biocol, but taking the absolute before adding all cells of one timestep up
parent 2363b03a
No related branches found
No related tags found
2 merge requests!6Merge reviewed package into main,!5Merge review_paper version to master
......@@ -483,7 +483,12 @@ read_calc_biocol <- function( # nolint
# NPPpi as ref
biocol_perc_piref <- biocol / rowMeans(npp_ref) * 100
# take the abs of biocol and sum that up for overtime
biocol_abs_frac <- colSums(abs(biocol * cellarea)) /
mean(colSums(npp_ref * cellarea))
return(list(biocol_overtime = biocol_overtime,
biocol_abs_frac = biocol_abs_frac,
biocol = biocol,
biocol_perc = biocol_perc,
biocol_overtime_perc_piref = biocol_overtime_perc_piref,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment