cboisvenue / spadesCBM

A Carbon Budget family of modules for SpaDES - logic from CBM-CFS3
2 stars 2 forks source link

remake CBM_vol2biomass #45

Open cboisvenue opened 6 months ago

cboisvenue commented 6 months ago

The CBM_vol2biomass module is the translation of forestry growth curves into aboveground biomass increments for the 3 CBM pools that take up carbon from the atmosphere: merch, foliage, other. The translation is made with the Boudewyn et al 2007 parameters and requires knowledge of where the curves are from in the form of ecozones and SPUs (CBM-term for the overlay of administrative boundaries and ecozones in a specific order). Ecozones and SPU maps are built in CBM_dataPrep_SK, but this module should be able to accept these maps and translate the curves regardless of if the CBM_dataPrep_SK is used. Note: for LandR_CBM this module (CBM_vol2biomass) is what is being replaced by LandR curves (built in the yield module) and yearly increments calculated by LandR.

### Tasks
- m3ToBiomPlots cannot be cached, that makes an error. We need to cache these.
- P(sim)$.plotInitialTime needs to be set and be the trigger for m3ToBiomPlots 
- Many ##TODOs to be solved.