-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #737 from flohump/f_ageclass
Bugfix age-classes
- Loading branch information
Showing
23 changed files
with
119 additions
and
105 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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
*** | Contact: [email protected] | ||
|
||
parameter | ||
im_plantedclass_ac(j,ac) Raw Distribution of ageclass in secondary forest as a proxy for planted forest (mio. ha) | ||
im_forest_ageclass(j,ac) Forest area in 5-year age-classes based on GFAD (mio. ha) | ||
; |
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,7 +5,7 @@ | |
*** | MAgPIE License Exception, version 1.0 (see LICENSE file). | ||
*** | Contact: [email protected] | ||
|
||
table f28_forestageclasses(j,ac_poulter) Poulter age-class area in each cluster (1) | ||
table f28_forestageclasses(j,ac_gfad) Forest area in 15 10-year age classes from GFAD (Mha) | ||
$ondelim | ||
$include "./modules/28_ageclass/input/forestageclasses.cs3" | ||
$offdelim | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*** | (C) 2008-2024 Potsdam Institute for Climate Impact Research (PIK) | ||
*** | authors, and contributors see CITATION.cff file. This file is part | ||
*** | of MAgPIE and licensed under AGPL-3.0-or-later. Under Section 7 of | ||
*** | AGPL-3.0, you are granted additional permissions described in the | ||
*** | MAgPIE License Exception, version 1.0 (see LICENSE file). | ||
*** | Contact: [email protected] | ||
|
||
* Two age-classes in `ac` are mapped to one age-class in `ac_gfad`. | ||
* Therefore, each age-class in `ac_gfad` is distributed equally to all belonging age-classes in `ac`. | ||
im_forest_ageclass(j,ac) = 0; | ||
im_forest_ageclass(j,ac) = sum(ac_gfad_to_ac(ac_gfad,ac),f28_forestageclasses(j,ac_gfad)) / 2; | ||
* `class15` in GFAD1.1 includes forests that are 150 years or older, also including primary forest. | ||
* Therefore, `class15` is mapped to the highest age-class `acx`. | ||
im_forest_ageclass(j,"acx") = f28_forestageclasses(j,"class15"); |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
*** | (C) 2008-2024 Potsdam Institute for Climate Impact Research (PIK) | ||
*** | authors, and contributors see CITATION.cff file. This file is part | ||
*** | of MAgPIE and licensed under AGPL-3.0-or-later. Under Section 7 of | ||
*** | AGPL-3.0, you are granted additional permissions described in the | ||
*** | MAgPIE License Exception, version 1.0 (see LICENSE file). | ||
*** | Contact: [email protected] | ||
|
||
*' @description This realization provides forest area in age-classes `im_forest_ageclass` | ||
*' based on the Global Forest Age Dataset (GFAD V1.1) from @poulter_global_2019. | ||
|
||
*' @limitations Disturbances such as forest fires change the age structure of forests over time. | ||
*' GFAD V1.1 likely includes such disturbances in younger age-classes (`ac_young`). | ||
*' Since forest disturbances are not modeled extensively in MAgPIE, | ||
*' using these numbers directly in the model might generate biases. | ||
|
||
*####################### R SECTION START (PHASES) ############################## | ||
$Ifi "%phase%" == "sets" $include "./modules/28_ageclass/oct24/sets.gms" | ||
$Ifi "%phase%" == "declarations" $include "./modules/28_ageclass/oct24/declarations.gms" | ||
$Ifi "%phase%" == "input" $include "./modules/28_ageclass/oct24/input.gms" | ||
$Ifi "%phase%" == "preloop" $include "./modules/28_ageclass/oct24/preloop.gms" | ||
$Ifi "%phase%" == "presolve" $include "./modules/28_ageclass/oct24/presolve.gms" | ||
*######################## R SECTION END (PHASES) ############################### |
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 |
---|---|---|
|
@@ -6,19 +6,15 @@ | |
*** | Contact: [email protected] | ||
|
||
sets | ||
ac_poulter Forest age classes in Poulter data set | ||
ac_gfad Forest age classes in GFAD data set | ||
/ class1, class2, class3, class4, class5, | ||
class6, class7, class8, class9, class10, | ||
class11, class12, class13, class14, class15 / | ||
|
||
ac_planted(ac) Young age classes which probably belong to managed forest | ||
ac_young(ac) Young age classes | ||
/ ac0, ac5, ac10, ac15, ac20, ac25, ac30 / | ||
|
||
ac_plantations(ac) Possible age classes which probably belong to plantations | ||
/ ac0, ac5, ac10, ac15, ac20, ac25, ac30, | ||
ac35, ac40, ac45, ac50, ac55, ac60 / | ||
|
||
ac_poulter_to_ac(ac_poulter,ac) mapping between ac and ac_poulter | ||
ac_gfad_to_ac(ac_gfad,ac) mapping between ac and ac_gfad | ||
/ | ||
class1 . (ac5,ac10) | ||
class2 . (ac15,ac20) | ||
|
@@ -34,10 +30,9 @@ class11 . (ac105,ac110) | |
class12 . (ac115,ac120) | ||
class13 . (ac125,ac130) | ||
class14 . (ac135,ac140) | ||
class15 . (ac145,ac150) | ||
/ | ||
|
||
; | ||
|
||
alias(ac_poulter,ac_poulter2); | ||
alias(ac_gfad,ac_gfad2); | ||
alias(ac,ac2); |
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
Oops, something went wrong.