-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes in rc after test runs for forestry and default settings #214
Changes from all commits
1410f0e
498b731
2a3ae2a
22d8562
e46e612
aa0a985
ef5edd7
a427cda
baeec06
05fddbd
404dbfe
ac63bdc
6fd84fa
030cb4a
1d5355a
f8b5309
556c548
1b99966
62384a7
34dae97
81deb6d
ed197db
11d17d2
c7921a1
58c5396
bb54777
d1eeaf0
251c130
c48bb5f
e3cce5d
a835aa4
4d58367
595c01a
d9ac8de
45fd1fe
1abdf71
47d8812
53b843f
ff49d92
5f2c855
d5fa12b
20fe349
edd93d3
3cc0809
5348b65
8472ec4
54ab75a
b599a78
1eab080
b1232bb
4b40bbc
1fddaed
b5bcb8a
e0b0d44
d5a9d8d
84017e3
ae89566
d6b0bb6
af5753b
40b8fc5
3e67b96
554bd1f
8a56efe
2fdd18b
0d124a3
92d185b
d0455b8
e280e88
41aed10
14e8c92
f6874b6
a780f14
849f361
8a6e867
b326a6e
c8314b0
ef4a14a
394a412
d0902cf
e5c42b3
62d2d3d
cb7e587
6d9a935
79c0b64
24f11d0
f3dce8a
f8dc027
17183c4
9aa7fe7
91a0b49
6c0cf70
61fa0fe
1bff145
58783a1
7b3dd4f
937eaba
879e0bf
0849c41
d314247
37de5f1
26d83d9
25d4851
ac709ce
04f9e52
87912ac
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,10 @@ cfg$model <- "main.gms" #def = "main.gms" | |
# which input data sets should be used? | ||
|
||
cfg$input <- c("isimip_rcp-IPSL_CM5A_LR-rcp2p6-co2_rev48_c200_690d3718e151be1b450b394c1064b1c5.tgz", | ||
"rev4.51_h12_magpie.tgz", | ||
"rev4.51_h12_validation.tgz", | ||
"calibration_H12_c200_26Feb20.tgz", | ||
"additional_data_rev3.85.tgz") | ||
"rev4.52_h12_magpie.tgz", | ||
"rev4.52_h12_validation.tgz", | ||
"calibration_H12_c200_26Feb20.tgz", | ||
"additional_data_rev3.86.tgz") | ||
|
||
#a list of repositories (please pay attention to the list format!) in which the | ||
#files should be searched for. Files will be searched in all repositories until | ||
|
@@ -314,8 +314,8 @@ cfg$gms$c15_EAT_scen <- "FLX" # def = FLX | |
# * Scenario target for the inclusion of alcohol in the EAT-Lancet diet | ||
# * only activated if s15_exo_diet is set to 1 | ||
# * (0): no alcohol consumption, as in the original version of the EAT-Lancet diet | ||
# * (0.014): maximum target for alcohol consumption is 1.4% of total calorie consumption | ||
# * (see Lassen et al., 2020) | ||
# * (0.014): maximum target for alcohol consumption is 1.4% of total calorie consumption | ||
# * (see Lassen et al., 2020) | ||
cfg$gms$s15_alc_scen <- 0.014 # def = 0.014 | ||
|
||
# * Switch and specification of countries for which exogenous food scenarios | ||
|
@@ -456,6 +456,33 @@ cfg$gms$c32_tcre_ctrl <- "ann_TCREmean" | |
# * 0=off | ||
cfg$gms$s32_initial_distribution <- 0 # def = 0 | ||
|
||
# Switch to fix timber plantations area after sm_fix_SSP2 value | ||
# This makes sure that cellular timber plantations are not changed after 2020. | ||
# This switch does not impact the model behavior before sm_fix_SSP2 as plantations are | ||
# not fixed for that period in the dynamic realization. | ||
# * 1= Plantation area is fixed after 2020 | ||
# * 0= Plantation area is not fixed after 2020 | ||
cfg$gms$s32_fix_plant <- 0 # def = 0 | ||
|
||
# Percentage of overall timber production which guides plantations establishment | ||
# decision. The model sees a proportion of wood demand from future and establishes | ||
# new plantations accordingly in the current time step (accepted values 0 to 1). | ||
cfg$gms$s32_plant_share <- 0.25 # def = 0.25 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again the description is not clear to me. The beginning of the sentence suggests that via the switch I am able to switch betweena constant share and another scenario, but looking at the value my guess is that we are always talking about a constant share scenario and I just define the share here. Is that correct? If so, please describe it that way in the comment. If my interpretation is correct you could for instance write: "Share of overall timber production from plantations which is hold constant over time." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. This is better. I changed it accordingly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added additional check to make sure a negative value or a value greater than 1 is not set by user |
||
|
||
# Switch fore regional or global interest rate for rotation length calculations. | ||
# Using the global setting would mean that the timber plantation decisions are | ||
# decoupled from other decisions in the model which are based on regional interest | ||
# rates. | ||
# * ("regional") = Regionally differentiated interest rates | ||
# * ("global") = One global interest rate | ||
cfg$gms$c32_interest_rate <- "regional" # def = "regional" | ||
|
||
# Global interest rate for plantations in case c32_interest_rate switch is global | ||
# Accepted values between 0 and 1. | ||
cfg$gms$s32_forestry_int_rate <- 0.05 # def = 0.05 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is that decoupled from our interest rate module? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding it there would mean an additional interface and this interest rate is provided to have a hypothetical scenario where we say investment decisions in forestry are dependent on a constant interest rate, there is anyways a lot of unecertainity in future interest rates so lets just assume one interest rate number forever in plantations decisions for rotation length calculation. |
||
|
||
# Additional investment cost in plantations for using unproductive cells | ||
cfg$gms$s32_investment_cost <- 200 # def = 200 | ||
|
||
# ***--------------------- 34_urban --------------------------------------- | ||
# * (static): static urban | ||
|
@@ -644,6 +671,9 @@ cfg$gms$carbon <- "normal_dec17" # def = normal_dec17 | |
# * nocc (no climate change) | ||
cfg$gms$c52_carbon_scenario <- "nocc" # def = "nocc" | ||
|
||
# * Minimum threshold of carbon density (tC/ha) in timber plantations | ||
cfg$gms$s52_plantation_threshold <- 8 # def = 8 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the unit here? Please set value to its default value! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the unit and updated the default values |
||
# ***--------------------- 53_methane ------------------------------------- | ||
# * (ipcc2006_flexreg_apr16): IPCC 1996 methodology | ||
# * (off): methane calculations deactivated | ||
|
@@ -925,6 +955,32 @@ cfg$gms$timber <- "biomass_mar20" # def = biomass_mar20 | |
# * 0=off | ||
cfg$gms$s73_demand_switch <- 0 # def = 0 | ||
|
||
# Setting to define if the model should be forward looking or not in terms of | ||
# seeing the future demand for current timestep establishment of new plantations | ||
# in the forward setting, the model sees only current demand for establishment | ||
# decisions in the historical time period but then sees future demand for non | ||
# historic time periods. In myopic setting, the model sees always the current | ||
# timber demand for establishment decisions. | ||
# * 1 = forward looking. Model sees future demand for establishment in current step | ||
# * 0 = myopic. Model sees current demand for establishment in current step | ||
cfg$gms$s73_foresight <- 0 # def = 0 | ||
|
||
# harvesting cost per ton of dry matter produced (USD/tDM) | ||
s73_timber_prod_cost <- 2000 # def = 2000 | ||
|
||
# harvesting cost per ha of forests (USD/ha) | ||
s73_timber_harvest_cost <- 2000 # def = 2000 | ||
|
||
# Cost multiplier for harvesting costs to make natural vegetation harvest expensive | ||
# than timber plantation harvst. This provides a signal to the model to harvest | ||
# timber plantations first. | ||
s73_cost_multiplier <- 1.5 # def = 1.5 | ||
|
||
# Cost of production without using any land in case the model is running into infeasibilities. | ||
# This is a last ditch effort for the model and the variable assocaited with this cost | ||
# should not be used in a normally feasible model run (USD/tDM) | ||
s73_free_prod_cost <- 1000000 # def = 1000000 | ||
|
||
|
||
# ***------------------- 80_optimization ------------------------------------ | ||
# * (nlp_apr17): solve procedure solving the whole, nonlinear problem | ||
|
@@ -1001,7 +1057,7 @@ cfg$files2export$start <- c("input/info.txt", | |
".Rprofile", | ||
"input/*.spam", | ||
"input/lpj_envflow_total_c200.mz", | ||
"input/lpj_watavail_total_c200.mz", | ||
"input/lpj_watavail_total_c200.mz", | ||
"input/validation.mif", | ||
"calib_*.cs3", | ||
"input/spamplot_*.pdf") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -253,7 +253,8 @@ sets | |
***Forestry** | ||
ac Age classes / ac0,ac5,ac10,ac15,ac20,ac25,ac30,ac35,ac40,ac45,ac50, | ||
ac55,ac60,ac65,ac70,ac75,ac80,ac85,ac90,ac95,ac100, | ||
ac105,ac110,ac115,ac120,ac125,ac130,ac135,ac140,ac145,acx / | ||
ac105,ac110,ac115,ac120,ac125,ac130,ac135,ac140,ac145, | ||
ac150,ac155,acx / | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added new age-classes for making sure than carbonstock reporting is not buggy in case MAgPIE is run till 2150 |
||
|
||
ac_est(ac) Dynamic subset of age classes for establishment | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,5 @@ kpr(kall) Products that can be processed | |
knpr(kall) Plant-based products that cannot be processed | ||
/alcohol,distillers_grain,ethanol,fibres,fish,livst_chick,livst_egg,livst_milk, | ||
livst_pig,livst_rum,oils,oilcakes,pasture,puls_pro,res_cereals,res_fibrous, | ||
res_nonfibrous,scp/ | ||
res_nonfibrous,scp,wood,woodfuel/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added for clarity - We don't model processing of initial wood products |
||
; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ kpr(kall) Products that can be processed | |
knpr(kall) Products that cannot be processed | ||
/alcohol,distillers_grain,ethanol,fibres,fish,livst_chick,livst_egg,livst_milk, | ||
livst_pig,livst_rum,oilcakes,pasture,puls_pro,res_cereals,res_fibrous, | ||
res_nonfibrous,scp/ | ||
res_nonfibrous,scp,wood,woodfuel/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added for clarity - We don't model processing of initial wood products |
||
|
||
processing_subst20 Processing activities | ||
/ milling, refining, extracting, distilling, fermentation, breeding, ginning, substitutes / | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
*** | MAgPIE License Exception, version 1.0 (see LICENSE file). | ||
*** | Contact: magpie@pik-potsdam.de | ||
|
||
$setglobal c21_trade_liberalization l908080r807070 | ||
$setglobal c21_trade_liberalization l909090r808080 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the value from default config. Not sure why this was set to |
||
* options are "regionalized" and "globalized" and "fragmented" | ||
|
||
scalars | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand how that switch works. What means 0? No fixing? What would be alternative values to put here? And what would they mean? Does it have a unit? How is that all related to 2020? What happens before 2020? Does it mean that this number only affects the behavior after 2020?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The number
0
indeed means plantations are not fixed after 2020. The plantations are also not fixed before 2020 irrespective of the settin ins32_fix_plant
. I added available settings for this in description anddefault.cfg
. It does not have a unit, just a binary switch. It breaks model behavior if the values are other than 0 or 1 so for making sure that the model still works if somebody sets it to other than 0 or 1 I can add an additional check.