PredictiveEcology / CBMutils

Utilities for modelling carbon in R based on CBM-CFS3
0 stars 1 forks source link

developing functions for checking carbon transfers #1

Closed cboisvenue closed 3 years ago

cboisvenue commented 4 years ago

ctransfer() and cTransferDist()

These functions are a legacy from the R-scripted c-tranfers in the SK branch. They need to be updated to be useful for checks in carbonara

cboisvenue commented 3 years ago

Important note: the first iteration of checking functions are assuming that the overmature decline values should be subtracted from the "from-pools" to be added to the "to-pools". But all the "from-pools" id are presently 1 (so the atmosphere for all other matrices). So, instead of "slowing the growth" in merch foliage and other, this adds c to the DOM pools (if it works like all the other matrices). Although this is wrong and the carbon should go from merch, foliage, other to DOM pools, I am leaving it like this to build the 1st iteration of check functions. It will let us check how this is working (assuming I get all the other matrices right!). Right now there are very few applications of overmature decline matrices, most values are set to 1 (#7 )

cboisvenue commented 3 years ago

The function CBMutils::checkTransactions was create and works.