This fixes an issue with breaking out regions as a result of allocation of managed forests. To use this feature, the user should follow the steps outlined below,
Before breaking out a region set the constant aglu.USE_BEFORE_ADJUST_FOREST_FILE to FALSE
Now run up to chunk - module_aglu_LB123.LC_R_MgdPastFor_Yh_GLU. This can be done using driver(stop_after = "module_aglu_LB123.LC_R_MgdPastFor_Yh_GLU")
This will generate the file- L123.LC_bm2_R_MgdFor_Yh_GLU_beforeadjust in the gcamdata/outputs/ folder
Copy the contents of this file (generated in step 3) to a file gcamdata/inst/extdata/aglu/LDS/L123.LC_bm2_R_MgdFor_Yh_GLU_beforeadjust . Just copy the contents and don't replace the whole file i.e. make sure the metadata does not change.
Set constant aglu.USE_BEFORE_ADJUST_FOREST_FILE to TRUE
After this , reload gcamdata- devtools::load_all(".")
This fixes an issue with breaking out regions as a result of allocation of managed forests. To use this feature, the user should follow the steps outlined below,
aglu.USE_BEFORE_ADJUST_FOREST_FILE
toFALSE
module_aglu_LB123.LC_R_MgdPastFor_Yh_GLU
. This can be done usingdriver(stop_after = "module_aglu_LB123.LC_R_MgdPastFor_Yh_GLU")
L123.LC_bm2_R_MgdFor_Yh_GLU_beforeadjust
in thegcamdata/outputs/
foldergcamdata/inst/extdata/aglu/LDS/L123.LC_bm2_R_MgdFor_Yh_GLU_beforeadjust
. Just copy the contents and don't replace the whole file i.e. make sure the metadata does not change.aglu.USE_BEFORE_ADJUST_FOREST_FILE
toTRUE
devtools::load_all(".")
driver
ordriver_drake
as ususal