forked from remindmodel/remind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change KotzWenz damage implementation to allow using high/low/median/…
…mean damages from the distribution, using an R script
- Loading branch information
Showing
31 changed files
with
152 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_globalMeanTemperatureZeroed1900,input,questionnaire | ||
pm_damageMarginalT,input,questionnaire | ||
pm_damageMarginalTm1,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_regionalTemperature,input,questionnaire | ||
pm_damageGrowthRate,input,questionnaire | ||
cm_damages_BurkeLike_specification,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_globalMeanTemperatureZeroed1900,input,questionnaire | ||
cm_damages_BurkeLike_specification,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
cm_damages_BurkeLike_specification,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
pm_damageMarginal,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_GDPGross,input,questionnaire | ||
pm_damageMarginalTC,input,questionnaire | ||
pm_GDPGrossIso,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,16 @@ | ||
p50_globalMeanTemp2020(nboot,tall)$(tall.val ge 2020 and tall.val le 2300) = | ||
pm_globalMeanTemperatureZeroed1900(tall)-pm_globalMeanTemperatureZeroed1900("2020") | ||
; | ||
|
||
*set temperature to max temp for each realization if it is higher | ||
loop(tall, | ||
loop(nboot, | ||
if((p50_globalMeanTemp2020(nboot,tall) gt f50_maxtemp(nboot)), | ||
p50_globalMeanTemp2020(nboot,tall) = f50_maxtemp(nboot) | ||
); | ||
); | ||
); | ||
|
||
*calculate damage factor for each country and realization | ||
p50_damageIso(tall,iso,nboot)$(tall.val gt 2020 and tall.val le 2300) = | ||
f50_beta1(nboot,iso)/100*p50_globalMeanTemp2020(nboot,tall)+f50_beta2(nboot,iso)/100*p50_globalMeanTemp2020(nboot,tall)*p50_globalMeanTemp2020(nboot,tall); | ||
|
||
*desired percentile of damages | ||
*hardcode mean for now, think about percentiles later | ||
p50_damageIsoPerc(tall,iso)$(tall.val gt 2020 and tall.val le 2300) = | ||
sum(nboot,p50_damageIso(tall,iso,nboot))/1000 | ||
; | ||
|
||
*marginal | ||
p50_damageMarginalIso(tall,iso,nboot)$(tall.val gt 2020 and tall.val le 2300) = | ||
f50_beta1(nboot,iso)/100+2*f50_beta2(nboot,iso)/100*p50_globalMeanTemp2020(nboot,tall) | ||
; | ||
|
||
p50_damageMarginalIsoPerc(tall,iso)$(tall.val gt 2020 and tall.val le 2300) = | ||
sum(nboot,p50_damageMarginalIso(tall,iso,nboot))/1000 | ||
; | ||
|
||
*loop(tall $ (tall.val ge 2020 and tall.val le 2300), | ||
* loop(iso, | ||
* p50_rank(nboot)=p50_damageIso(tall,iso,nboot); | ||
*$libInclude rank p50_rank nboot p50_r p50_pct | ||
* p50_damageIsoPerc(tall,iso)=p50_pct("median"); | ||
** p50_damageIsoPerc(tall,iso)=p50_pct("%cm_DamPerc%") | ||
|
||
* p50_rank(nboot)=p50_damageMarginalIso(tall,iso,nboot); | ||
*$libInclude rank p50_rank nboot p50_r p50_pct | ||
* p50_damageMarginalIsoPerc(tall,iso)=p50_pct("median"); | ||
** p50_damageMarginalIsoPerc(tall,iso)=p50_pct("%cm_DamPerc%") | ||
*display p50_pct; | ||
* ); | ||
*); | ||
|
||
execute "Rscript run_KotzWenz_damages.R" | ||
execute_loadpoint 'pm_KotzWenz_damageIso' p50_damageIsoPerc=pm_damageIso; | ||
execute_loadpoint 'pm_KotzWenz_damageMarginalIso' pm_damageMarginalIsoPerc=pm_damageMarginalIso; | ||
|
||
pm_damageMarginal(tall,regi)$(tall.val gt 2020 and tall.val le 2300) = | ||
* sum(regi2iso(regi,iso),p50_damageMarginalIsoPerc(tall,iso)*p50_isoGDP(tall,iso))/sum(regi2iso(regi,iso),p50_isoGDP(tall,iso)) | ||
sum(regi2iso(regi,iso),p50_damageMarginalIsoPerc(tall,iso)*pm_GDPfrac(tall,iso)) | ||
sum(regi2iso(regi,iso),pm_damageMarginalIsoPerc(tall,iso,"%cm_KotzWenzPerc%")*pm_GDPfrac(tall,iso)) | ||
; | ||
|
||
*regional damage using SSP country level GDP as weight | ||
pm_damage(tall,regi)$(tall.val gt 2020 and tall.val le 2300) = | ||
1-sum(regi2iso(regi,iso),p50_damageIsoPerc(tall,iso)*pm_GDPfrac(tall,iso)) | ||
1-sum(regi2iso(regi,iso),p50_damageIsoPerc(tall,iso,"%cm_KotzWenzPerc%")*pm_GDPfrac(tall,iso)) | ||
; | ||
|
||
display p50_damageIsoPerc,pm_damage,pm_damageMarginal; | ||
display pm_damage,pm_damageMarginal; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_globalMeanTemperatureZeroed1900,input,questionnaire | ||
pm_temperatureImpulseResponseCO2,input,questionnaire | ||
pm_GDPGross,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_temperatureImpulseResponseCO2,input,questionnaire | ||
cm_damages_BurkeLike_specification,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_globalMeanTemperatureZeroed1900,input,questionnaire | ||
pm_regionalTemperature,input,questionnaire | ||
pm_damage,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_damageMarginalT,input,questionnaire | ||
pm_damageMarginalTm1,input,questionnaire | ||
pm_damageMarginalTm2,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_tempScaleGlob2Reg,input,questionnaire | ||
pm_damage,input,questionnaire | ||
pm_damageGrowthRate,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
pm_damageMarginal,input,questionnaire | ||
pm_cesdata,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
pm_damageMarginal,input,questionnaire | ||
pm_cesdata,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_cesdata,input,questionnaire | ||
pm_lab,input,questionnaire | ||
pm_interpolWeight_ttot_tall,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_cesdata,input,questionnaire | ||
pm_lab,input,questionnaire | ||
pm_interpolWeight_ttot_tall,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
pm_damageMarginal,input,questionnaire | ||
pm_cesdata,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginal,input,questionnaire | ||
pm_damageMarginalT,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
pm_tempScaleGlob2Reg,input,questionnaire | ||
|
@@ -19,7 +20,6 @@ pm_tall_2_ttot,input,questionnaire | |
pm_damageProd,input,questionnaire | ||
pm_damageTC,input,questionnaire | ||
pm_damageGrowthRateTC,input,questionnaire | ||
pm_GDPfrac,input,questionnaire | ||
pm_damageMarginalTC,input,questionnaire | ||
pm_GDPGrossIso,input,questionnaire | ||
pm_damageImp,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginal,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
pm_tempScaleGlob2Reg,input,questionnaire | ||
pm_damage,input,questionnaire | ||
|
@@ -19,7 +20,6 @@ pm_tall_2_ttot,input,questionnaire | |
pm_damageProd,input,questionnaire | ||
pm_damageTC,input,questionnaire | ||
pm_damageGrowthRateTC,input,questionnaire | ||
pm_GDPfrac,input,questionnaire | ||
pm_damageMarginalTC,input,questionnaire | ||
pm_GDPGrossIso,input,questionnaire | ||
pm_damageImp,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
cm_damages_BurkeLike_persistenceTime,input,questionnaire | ||
pm_damageGrowthRate,input,questionnaire | ||
pm_damageMarginalT,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_cesdata,input,questionnaire | ||
pm_lab,input,questionnaire | ||
pm_GDPGross,input,questionnaire | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | REMIND License Exception, version 1.0 (see LICENSE file). | ||
# | Contact: [email protected] | ||
name,type,reason | ||
pm_damageMarginalIsoPerc,input,questionnaire | ||
pm_temperatureImpulseResponseCO2,input,questionnaire | ||
pm_tempScaleGlob2Reg,input,questionnaire | ||
pm_damage,input,questionnaire | ||
|
Oops, something went wrong.