Skip to content

Commit

Permalink
Merge branch 'develop' into add_EU_output_report
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidhoPIK authored Jun 21, 2024
2 parents 53489dc + 3ac5aba commit 0146086
Show file tree
Hide file tree
Showing 184 changed files with 3,651 additions and 2,560 deletions.
11 changes: 8 additions & 3 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "MAgPIE - An Open Source land-use modeling framework",
"version": "4.7.3dev",
"version": "4.8.1dev",
"creators": [
{
"name": "Dietrich, Jan Philipp",
Expand Down Expand Up @@ -99,6 +99,11 @@
"affiliation": "Potsdam Institute for Climate Impact Research",
"orcid": "0000-0003-0328-4750"
},
{
"name": "Steinhauser, Jan",
"affiliation": "Potsdam Institute for Climate Impact Research",
"orcid": "0000-0002-5989-6855"
},
{
"name": "Lotze-Campen, Hermann",
"affiliation": "Potsdam Institute for Climate Impact Research",
Expand All @@ -110,9 +115,9 @@
"orcid": "0000-0001-9500-1986"
}
],
"keywords": ["landuse", "modeling", "nlp", "partial equilibrium"],
"keywords": ["landuse", "modeling", "model", "nlp", "partial equilibrium"],
"license": {
"id": "AGPL-3.0-or-later"
},
"publication_date": "2024-04-12"
"publication_date": "2024-06-19"
}
108 changes: 80 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,58 +7,108 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]

### changed
- **22_land_conservation and default.cfg** Added options for baseline protection
-

### added
- **scripts** added output report `EU_report.R` that uses `EU_report.Rmd`

### removed
-

### fixed
-


## [4.8.1] - 2024-06-19

### changed
- **29_ageclass** module 29_ageclass has been renamed to 28_ageclass to make space for `29_cropland` just before `30_croparea`
- **30_crop** module `30_crop` renamed to `30_croparea`, which now only accounts for crop area.
- **30_crop** Semi-Natural Vegetation (SNV) implementation has been moved from `30_crop` to `29_cropland`
- **30_crop** the previous `30_crop/endo_apr21` realization has been moved to `30_croparea/simple_apr24`
- **30_crop** the two realizations `penalty_apr22` and `rotation_apr22` have been merged into a single `30_croparea/detail_apr24` realization
- **default.cfg** update additional data to rev4.51
- **scripts** adjusted SLURM job handling
- **scripts** updated EL2p0 start scripts

### added
- **10_land** added interface `pm_land_hist` with historic land use patterns
- **29_cropland** new module `29_cropland` accounting for crop area, fallow cropland and tree cover on cropland with two realizations: `detail_apr24` and `simple_apr24` (default).
- **42_water_demand** added non-agricultural water demand for entire year

### removed
- **32_forestry** removed technical balance term `v32_land_missing_ndc`

### fixed
- **22_land_conservation** avoid infeasibilities due to very small numbers, account for cropland tree cover and lower bound of cropland
- **32_forestry** avoid infeasibilities due to very small numbers
- **35_natveg** avoid infeasibilities due to very small numbers
- **44_biodiversity** Fixing to SSP2 parameters until 2025 was not working
- **config** update to input data rev4.109. In the previous rev4.108, MER GDP was wrong and was identical to PPP GDP



## [4.8.0] - 2024-06-10

### changed
- **14_yields** revised timber yield calculations
- **15_food, default.cfg and scenario_config.csv** changed fader setup and introduced new switches for specifying food substitution scenarios and exogeneous food intake scenarios
- **22_land_conservation and default.cfg** Added options for baseline protection
- **32_forestry** renamed interface `pm_demand_ext` to `pm_demand_forestry`
- **32_forestry** revision and simplification of forestry implementation, renamed realization from `dynamic_feb21` to `dynamic_may24`.
- **35_natveg** `vm_land(j2,"forestry")` included in NPI/NDC constraint `q35_min_forest`
- **35_natveg** replaced the realisation `dynamic_feb21` with realisation `pot_forest_may24`. The new realisation provides additional information on the potential forest area, which is now used to constrain forest and forestry expansion and recovery. The remaining area for forest establishment is provided to the forestry module via the new interface parameter `pcm_max_forest_est`.
- **41_area_equipped_for_irrigation** updated (non-default) AEI data (from Mehta2022 to Mehta2024)
- **52_carbon** Separate carbon densities for forest and other land. Before there was only a single carbon density for natural vegetation land.
- **70_livestock** default.cfg and scenario_config.csv** changed fader setup and introduced new switches for specifying feed substitution with SCP scenarios
- **default.cfg** update additional data to rev4.50
- **default.cfg** changed default realization for 44_biodiversity to new realization `bii_target_apr24`
- **80_optimization** Simplifed cycling through CONOPT4, CONOPT4 with OPTFILE, CONOPT4 without preprocessing and CONOPT3.
- **scripts** start/test_runs.R added 2 more test runs from FSEC
- **32_forestry** revision and simplification of forestry implementation, renamed realization from `dynamic_feb21` to `dynamic_may24`.
- **32_forestry** renamed interface `pm_demand_ext` to `pm_demand_forestry`
- **default.cfg** changed default realization for 44_biodiversity to new realization `bii_target_apr24`
- **default.cfg** defaults for `cfg$gms$sm_fix_SSP2`, `cfg$gms$sm_fix_cc` and other switches changed from 2020 to 2025
- **default.cfg** Forestry sector included by default by using the `ForestryEndo` settings from `scenario_config.csv`: `s32_initial_distribution = 1`, `s32_demand_establishment = 1`, `s32_hvarea = 2`, `s35_secdf_distribution = 2`, `s35_hvarea = 2`, `s73_timber_demand_switch = 1`
- **14_yields** revised timber yield calculations
- **35_natveg** `vm_land(j2,"forestry")` included in NPI/NDC constraint `q35_min_forest`
- **default.cfg** update additional data to rev4.50
- **scripts** modified agmip_merge_report to use piamInterfaces
- **scripts** start/test_runs.R added 2 more test runs from FSEC

### added
- **scripts** added output report `EU_report.R` that uses `EU_report.Rmd`
- **default.cfg** added cropland growth constraint `cfg$gms$s30_annual_max_growth`
- **default.cfg** added technical cost for missing BII increase `cfg$gms$s44_cost_bii_missing`
- **default.cfg** added settings for new price-driven bioenergy realization `1st2ndgen_priced_feb24`: `cfg$gms$s60_2ndgen_bioenergy_dem_min_post_fix`, `cfg$gms$c60_bioenergy_subsidy_fix_SSP2`, `s60_bioenergy_gj_price_1st`,
`s60_bioenergy_price_2nd`, `c60_price_implementation`
- **core** added `coup2110`timesteps
- **15_food** added additional sigmoid food substition scenarios `sigmoid_75pc_25_50`, `sigmoid_50pc_25_50` and `sigmoid_25pc_25_50`
- **21_trade** Minimum trade margin for forestry products `s21_min_trade_margin_forestry`
- **30_crop** added regional cropland equation `q30_crop_reg` and presolve growth constraint
- **44_biodiversity** added new realization `bii_target_apr24`, taking into account `f44_rr_layer`
- **60_bioenergy** added new realization `1st2ndgen_priced_feb24` to enable price-driven 2nd gen bioenergy production
- **scripts** added automatic set writer for new bioenergy realization to `start_functions`
- **scripts** added start scripts for the GENIE project
- **scenario_config.csv** added preset for GENIE project
- **default.cfg** cfg$gms$s80_secondsolve option for second solve statement with 0=off as default
- **21_trade** Minimum trade margin for forestry products `s21_min_trade_margin_forestry`
- **73_timber** added interface `im_timber_prod_cost`
- **scripts** added "checkSummation" output script for consistency checking a report.mif
- **citation** added abstract
- **core** added `coup2110`timesteps
- **default.cfg** added cropland growth constraint `cfg$gms$s30_annual_max_growth`
- **default.cfg** added settings for new price-driven bioenergy realization `1st2ndgen_priced_feb24`: `cfg$gms$s60_2ndgen_bioenergy_dem_min_post_fix`, `cfg$gms$c60_bioenergy_subsidy_fix_SSP2`, `s60_bioenergy_gj_price_1st`,
- **default.cfg** added technical cost for missing BII increase `cfg$gms$s44_cost_bii_missing`
- **default.cfg** cfg$gms$s80_secondsolve option for second solve statement with 0=off as default
- **scenario_config.csv** added preset for GENIE project
- **scripts** added "checkSummation" output script for consistency checking a report.mif
- **scripts** added automatic set writer for new bioenergy realization to `start_functions`
- **scripts** added start scripts for the GENIE project
`s60_bioenergy_price_2nd`, `c60_price_implementation`

### removed
- **scripts/output/extra** removed scripts disaggregation_cropsplit and disaggregation_transitions
- **scripts** removed support for spam files in start_functions
- **14_yields** removed interface `pm_timber_yield_initial`
- **21_trade** removed interface `pm_selfsuff_ext`, removed `v21_manna_from_heaven`
- **32_forestry** removed interface `pm_representative_rotation`
- **73_timber** removed interfaces `pm_demand_forestry_future` and `sm_wood_density`
- **62_material/16_demand** Removed double structure for forestry products. `pm_demand_foresty` is now used in `62_material`
- **35_natveg** removed growing stock calculation and calibration, which is no longer needed.
- **62_material/16_demand** Removed double structure for forestry products. `pm_demand_foresty` is now used in `62_material`
- **73_timber** removed interfaces `pm_demand_forestry_future` and `sm_wood_density`
- **scripts** removed support for spam files in start_functions
- **scripts/output/extra** removed scripts disaggregation_cropsplit and disaggregation_transitions

### fixed
- **14_yields** fix division by zero in preloop of managementcalib_aug19
- **extra/disaggregation** fixed bug in disaggregation of land conservation related to switch from 59k to 67k that produced erroneous outputs
- **44_biodiversity** avoid division by zero
- **58_peatland** Added balance variable to avoid random infeasibilites
- **80_optimization** fixed a bug in nlp_apr17; cycling through CONOPT4, CONOPT4 without preprocessing and CONOPT3 was not working
- **extra/disaggregation** fixed bug in disaggregation of land conservation related to switch from 59k to 67k that produced erroneous outputs
- **scenario_config.csv** same revision for input files as in default.cfg
- **scenario_fsec.csv** scenario settings
- **scripts/start/test_runs.R** include all default output script, in particular disaggregation.R, which is needed for BII
- **start/projects/fsec.R** scenario settings
- **80_optimization** fixed a bug in nlp_apr17; cycling through CONOPT4, CONOPT4 without preprocessing and CONOPT3 was not working
- **58_peatland** Added balance variable to avoid random infeasibilites


## [4.7.3] - 2024-04-12

Expand Down Expand Up @@ -927,7 +977,9 @@ This release version is focussed on consistency between the MAgPIE setup and the
First open source release of the framework. See [MAgPIE 4.0 paper](https://doi.org/10.5194/gmd-12-1299-2019) for more information.


[Unreleased]: https://github.com/magpiemodel/magpie/compare/v4.7.3...develop
[Unreleased]: https://github.com/magpiemodel/magpie/compare/v4.8.1...develop
[4.8.1]: https://github.com/magpiemodel/magpie/compare/v4.8.0...v4.8.1
[4.8.0]: https://github.com/magpiemodel/magpie/compare/v4.7.3...v4.8.0
[4.7.3]: https://github.com/magpiemodel/magpie/compare/v4.7.2...v4.7.3
[4.7.2]: https://github.com/magpiemodel/magpie/compare/v4.7.1...v4.7.2
[4.7.1]: https://github.com/magpiemodel/magpie/compare/v4.7.0...v4.7.1
Expand Down
6 changes: 3 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ title: MAgPIE - An Open Source land-use modeling framework
abstract: The *Model of Agricultural Production and its Impact on the Environment* (MAgPIE)
is a modular open source framework for modeling global land-systems, which is
coupled to the grid-based dynamic vegetation model LPJmL, with a spatial resolution
of 0.5°x0.5°. It takes regional economic conditions such as demand for agricultural
of 0.5degx0.5deg. It takes regional economic conditions such as demand for agricultural
commodities, technological development and production costs as well as spatially
explicit data on potential crop yields, land and water constraints (from LPJmL) into
account. Based on these, the model derives specific land use patterns, yields and
Expand All @@ -151,8 +151,8 @@ abstract: The *Model of Agricultural Production and its Impact on the Environmen
exogenously given population in 10 food energy categories, based on regional diets.
Future trends in food demand are derived from a cross-country regression analysis,
based on future scenarios on GDP and population growth.
version: 4.7.3dev
date-released: 2024-04-12
version: 4.8.1dev
date-released: 2024-06-19
repository-code: https://github.com/magpiemodel/magpie
keywords:
- landuse
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Imports:
m4fsdp,
madrat,
magclass (>= 6.14.0),
magpie4,
magpie4 (>= 2.3.10),
MagpieNCGains,
magpiesets,
mip,
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ https://www.pik-potsdam.de/research/projects/activities/land-use-modelling/magpi
A framework description paper has been published in
Geoscientific Model Development (GMD): https://doi.org/10.5194/gmd-12-1299-2019

The model documentation for version 4.7.3 can be found at
https://rse.pik-potsdam.de/doc/magpie/4.7.3/
The model documentation for version 4.8.1 can be found at
https://rse.pik-potsdam.de/doc/magpie/4.8.1/

A most recent version of the documentation can also be extracted from the
model source code via the R package goxygen
Expand Down Expand Up @@ -226,7 +226,7 @@ [email protected]
Please contact [email protected]

## CITATION
See file CITATION.cff or the [How-to-Cite section](https://rse.pik-potsdam.de/doc/magpie/4.7.3/#how-to-cite) in the model documentation for information how to cite the model.
See file CITATION.cff or the [How-to-Cite section](https://rse.pik-potsdam.de/doc/magpie/4.8.1/#how-to-cite) in the model documentation for information how to cite the model.

## AUTHORS
See list of authors in CITATION.cff
Expand Down
Loading

0 comments on commit 0146086

Please sign in to comment.