Skip to content
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

MAgPIE release 4.8.0 #684

Merged
merged 323 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
323 commits
Select commit Hold shift + click to select a range
034f535
Add cropland growth constraint to all realizations
jansteinhauser Mar 1, 2024
4c87f0d
update Changelog
jansteinhauser Mar 1, 2024
e54d961
Update Citation
jansteinhauser Mar 1, 2024
f5786c3
documentation correction
jansteinhauser Mar 1, 2024
587dfdc
remove tabs
jansteinhauser Mar 4, 2024
cb4616b
Update additional data to include new SCP scenarios
jansteinhauser Mar 4, 2024
452d2b9
update changelog
jansteinhauser Mar 4, 2024
6a33924
Adjust changelog to account for 4.7.1 release
jansteinhauser Mar 4, 2024
0be4f3e
Merge branch 'develop' into develop
jansteinhauser Mar 4, 2024
1563b56
Merge branch 'develop' into develop
jansteinhauser Mar 6, 2024
dafe872
Merge branch 'develop' into develop
jansteinhauser Mar 12, 2024
77aac3f
update scenario config
jansteinhauser Mar 23, 2024
4d11348
Merge branch 'develop' of https://github.com/jansteinhauser/magpie in…
jansteinhauser Mar 23, 2024
3a08b54
Merge branch 'develop' into develop
jansteinhauser Mar 23, 2024
e305c79
Update config/default.cfg
jansteinhauser Mar 27, 2024
c7b26ea
Apply suggestions from code review
jansteinhauser Mar 27, 2024
4766d87
Apply PR feedback
jansteinhauser Apr 5, 2024
efb738b
Merge branch 'develop' into develop
jansteinhauser Apr 5, 2024
d600367
Update default.cfg
jansteinhauser Apr 5, 2024
174c29a
Create new Biodiv default realization with RR layer
jansteinhauser Apr 8, 2024
fbabfc2
update changelog
jansteinhauser Apr 8, 2024
0263d26
bugfix
jansteinhauser Apr 8, 2024
db24065
Add end line
jansteinhauser Apr 10, 2024
3594c2c
Merge branch 'develop' into develop
jansteinhauser Apr 10, 2024
1fdaa50
merge master into develop
pascal-sauer Apr 12, 2024
7f8229d
Merge pull request #661 from pascal-sauer/develop
pascal-sauer Apr 12, 2024
0ef652e
added baseline conservation options
pvjeetze Apr 12, 2024
afe0354
updated changelog
pvjeetze Apr 12, 2024
58b580e
upload doc for release as rse user
pascal-sauer Apr 15, 2024
2f29c61
bugfixes develop
flohump Apr 15, 2024
f428c96
land conservation disaggregation fix
pvjeetze Apr 15, 2024
052b0fa
added error message
pvjeetze Apr 15, 2024
aff90f4
added disagg fix to changelog
pvjeetze Apr 15, 2024
ef4bc13
modified extra/disaggregation to account for different basline protec…
pvjeetze Apr 15, 2024
c722194
check doc rsync worked
pascal-sauer Apr 15, 2024
3f37b47
add input data rev check to release script
pascal-sauer Apr 15, 2024
ef8ed5c
Merge branch 'develop' of github.com:magpiemodel/magpie into develop
pascal-sauer Apr 15, 2024
0febc0f
Merge pull request #664 from flohump/f_fix
flohump Apr 15, 2024
91880a2
new input data
pvjeetze Apr 16, 2024
b1cdc4d
reverted run settings in main.gms
pvjeetze Apr 16, 2024
f2e46f3
run codecheck only if gms file staged
pascal-sauer Apr 16, 2024
c31d84c
Merge branch 'develop' of github.com:pascal-sauer/magpiemodel into de…
pascal-sauer Apr 16, 2024
8b10aa6
bugfix solve
flohump Apr 16, 2024
5030b4b
bugfix solve
flohump Apr 16, 2024
bb9cafd
fix
pvjeetze Apr 16, 2024
97aed0b
resolved merge conflicts
pvjeetze Apr 16, 2024
7bb2a9a
Remove y2025 afforestation constraint
jansteinhauser Apr 17, 2024
32f6c5d
Update Changelog
jansteinhauser Apr 17, 2024
c41f383
Merge branch 'develop' into develop
jansteinhauser Apr 17, 2024
e342c91
Remove aff constraint from config
jansteinhauser Apr 17, 2024
e5e28a6
Merge branch 'develop' of https://github.com/jansteinhauser/magpie in…
jansteinhauser Apr 17, 2024
2bae7ad
Auto stash before merge of "develop" and "origin/develop"
jansteinhauser Apr 17, 2024
2b433dd
Revert last commit
jansteinhauser Apr 17, 2024
3fb504c
default for `s14_minimum_wood_yield` aligned with FSEC settings
flohump Apr 17, 2024
5d0727f
bugfix start.R memory
flohump Apr 17, 2024
ed374a7
inline maxfilesize function in precommit
pascal-sauer Apr 18, 2024
f012feb
code cleanup
flohump Apr 18, 2024
59d2520
update main.gms
jansteinhauser Apr 19, 2024
6119eea
Apply suggestions from code review
jansteinhauser Apr 19, 2024
bc74c9a
added balance variable in peatland module
flohump Apr 20, 2024
612afb0
added balance variable in peatland module
flohump Apr 20, 2024
a53ee30
Merge pull request #666 from flohump/f_fix
flohump Apr 22, 2024
e2f4642
Merge pull request #665 from pascal-sauer/develop
pascal-sauer Apr 23, 2024
6fea0a4
Merge branch 'develop' of https://github.com/magpiemodel/magpie into …
pvjeetze Apr 23, 2024
8557e59
replace speed_aggregate
pascal-sauer Apr 23, 2024
b6066de
Merge pull request #667 from pascal-sauer/develop
pascal-sauer Apr 24, 2024
9bf3b4d
remove deprecated scripts + spam related code
pascal-sauer Apr 24, 2024
ff18392
changelog
pascal-sauer Apr 24, 2024
4d9191d
changelog
pascal-sauer Apr 24, 2024
843aedf
Merge pull request #669 from pascal-sauer/develop
pascal-sauer Apr 25, 2024
fe49881
updated (non-default) AEI data (from Mehta2022 to Mehta2024)
FelicitasBeier Apr 25, 2024
de05e08
Merge branch 'develop' of https://github.com/magpiemodel/magpie into …
pvjeetze Apr 25, 2024
49473ac
PR review fixes
pvjeetze Apr 25, 2024
dd0cc68
new forest recovery based on potential forest area
pvjeetze Apr 25, 2024
3d69a6b
new forest recovery based on potential forest area
pvjeetze Apr 25, 2024
60c6343
Merge branch 'develop' of https://github.com/magpiemodel/magpie into …
pvjeetze Apr 25, 2024
02d5cf5
adjusted p35_forest_min
pvjeetze Apr 25, 2024
664d69a
set input vector to same version as Patricks PR
FelicitasBeier Apr 26, 2024
b4dcbb7
bugfixes in EAT project start scripts
FelicitasBeier Apr 26, 2024
a4c48c4
remove unneeded comment from start script
FelicitasBeier Apr 26, 2024
e8fd179
bugfixes in EL2 start script for Deep Dive
FelicitasBeier Apr 29, 2024
dc127ed
bugfix in project_EAT2p0 start script related to ordering of decompos…
FelicitasBeier Apr 29, 2024
364f7ab
max forest restoration fixes
pvjeetze Apr 29, 2024
952c15c
bugfix
pvjeetze Apr 29, 2024
3514353
bugfix in scneario_config related to EL2 settings
FelicitasBeier Apr 30, 2024
77cba28
fixes for forest damage and regeneration
pvjeetze Apr 30, 2024
55a8125
removed ndc forestry conflict
pvjeetze May 2, 2024
3389360
adjustments in output scripts
FelicitasBeier May 2, 2024
fcc0f4a
use carbon density of other land where forest potential is zero
pvjeetze May 2, 2024
21fedf2
new realisation name
pvjeetze May 2, 2024
6365dec
changed settings in scenario config
FelicitasBeier May 3, 2024
fd50ef4
reworked forest regeneration
pvjeetze May 3, 2024
ff4ec9a
fixes
pvjeetze May 3, 2024
ab85d32
land_agfo set not needed
pvjeetze May 3, 2024
6f70949
added decomposition of diet scenarios for BAU to Deep Dive script
FelicitasBeier May 8, 2024
2267a44
new fader implementation in 15_food module
pvjeetze May 8, 2024
0a3ffb6
forestryMay24
flohump May 9, 2024
466cc41
bugfix
flohump May 9, 2024
8bf8492
update
flohump May 9, 2024
1942a8f
reworked forest recovery equations
pvjeetze May 9, 2024
42ff0ba
defaults
flohump May 10, 2024
1af1097
update
flohump May 10, 2024
7eb17fe
added combination of non-food mitigation mesaures scenario
FelicitasBeier May 10, 2024
50e1d73
Clarify BE setting description
jansteinhauser May 13, 2024
62c248d
updated configs
pvjeetze May 13, 2024
9a6265b
changelog
pvjeetze May 13, 2024
4a20fb4
duplication fix
pvjeetze May 13, 2024
ddeea95
scenario config bugfix
pvjeetze May 13, 2024
79d9e72
separated forest establishment and secondary forest recovery equations
pvjeetze May 13, 2024
d69aa50
minor adjustment
pvjeetze May 13, 2024
0eeddcb
further adjustments
pvjeetze May 13, 2024
b1bc69b
update start scripts #1
flohump May 13, 2024
391fd85
corrected typo
FelicitasBeier May 14, 2024
acef64e
updated Deep Dive scenarios: additional stacked decomposition scenarios
FelicitasBeier May 14, 2024
f378132
corrected spelling mistake in path to NPi run
FelicitasBeier May 14, 2024
8eceb0d
Update config/scenario_config.csv
pvjeetze May 14, 2024
a12cfd1
Update config/scenario_config.csv
pvjeetze May 14, 2024
5bb8f54
addressed review comments
pvjeetze May 14, 2024
1cba59b
additional minor fix
pvjeetze May 14, 2024
7186dfd
config merge conflict fixed
pvjeetze May 14, 2024
c59eb6b
another small fix
pvjeetze May 14, 2024
655813b
Merge pull request #639 from jansteinhauser/develop
jansteinhauser May 15, 2024
cb53c56
updated physical activity level in EL2 diet settings
FelicitasBeier May 15, 2024
82fa097
update 80_optimization
flohump May 16, 2024
1daa6c0
changelog
flohump May 16, 2024
0e1cbb4
resovled merge conflicts
pvjeetze May 16, 2024
7ff33c0
resovled merge conflicts
pvjeetze May 16, 2024
536be11
resolved merge conflicts
pvjeetze May 16, 2024
ebc6ad5
Merge branch 'f_WDPABaselineSplit' of https://github.com/pvjeetze/mag…
pvjeetze May 16, 2024
9ad2404
Update scripts/start/test_runs.R
flohump May 16, 2024
baec132
Update modules/80_optimization/nlp_apr17/solve.gms
flohump May 16, 2024
9aa4465
reverting back
flohump May 16, 2024
90d1761
automatic update of sets
flohump May 16, 2024
382839a
indent
flohump May 16, 2024
0e69657
ifelse
flohump May 16, 2024
1e79ca8
reworked 35_natveg presolve regarding potential forest area
pvjeetze May 16, 2024
7fd3f68
Merge pull request #675 from flohump/f_80opti
flohump May 16, 2024
6913e0f
separate carbon densities for forest and other land
pvjeetze May 16, 2024
934ac39
food calorie supply innstead of iinstead of intake
pvjeetze May 17, 2024
277f396
resolved merge conflicts
pvjeetze May 17, 2024
5e68555
fix
pvjeetze May 17, 2024
8efe523
Merge pull request #674 from pvjeetze/f_faderRework
pvjeetze May 17, 2024
79d13e1
resolve merge conflict
pvjeetze May 17, 2024
6f073dc
bugfix
pvjeetze May 17, 2024
5231701
Merge pull request #662 from pvjeetze/f_WDPABaselineSplit
pvjeetze May 17, 2024
4db24ad
Merge branch 'develop' of github.com:magpiemodel/magpie into f_forest…
flohump May 17, 2024
0bce4fb
Forestry Endo default for MAgPIE
flohump May 17, 2024
ddda969
Merge branch 'develop' into updateMehta2024
FelicitasBeier May 17, 2024
700e2d3
sorted the scenario_config by module number once again
FelicitasBeier May 17, 2024
e590de8
reverted renaming of forestry and natveg module
pvjeetze May 17, 2024
c547302
clean-up
flohump May 17, 2024
30654eb
changelog
flohump May 17, 2024
2e6cea0
updated input vector and scenario_config
FelicitasBeier May 17, 2024
93b6228
resolved merge conflict
pvjeetze May 17, 2024
932b49b
update
flohump May 17, 2024
6fbbb51
bugfixes
flohump May 17, 2024
9b0df5f
rework of forest establishment potential
pvjeetze May 17, 2024
7395c9a
bugfix
pvjeetze May 17, 2024
0c8311f
bugfix changelog
flohump May 17, 2024
cae41c4
defaults
flohump May 17, 2024
b7647f2
bugfix
flohump May 17, 2024
9627d1c
update highres
flohump May 17, 2024
41250ca
forest establishment bound fix
pvjeetze May 17, 2024
aa8c9a9
bugfix
flohump May 18, 2024
0e0e527
reverting back
flohump May 18, 2024
2e28b4a
slight renaming
pvjeetze May 18, 2024
26acf5a
slight renaming
pvjeetze May 18, 2024
a2fe7f6
model run time
flohump May 19, 2024
cdd804b
update
flohump May 19, 2024
b4f172b
changelog
flohump May 19, 2024
d53c8f2
updates
flohump May 20, 2024
927413a
updated Deep Dive script (temporary version)
FelicitasBeier May 20, 2024
03e7b25
update
flohump May 20, 2024
ebb9bb4
update
flohump May 20, 2024
2386637
updates
flohump May 20, 2024
ddc4b90
Update CHANGELOG.md
flohump May 21, 2024
ee2ceac
update changelog
flohump May 21, 2024
2e4d1b1
doc and clean-up
flohump May 21, 2024
28d94ae
changelog
flohump May 21, 2024
7cd8aac
added scrip
tscheypidi May 21, 2024
f9ef8f2
added output script
tscheypidi May 21, 2024
0a87508
added missing cff info
tscheypidi May 21, 2024
27abd8f
NPI update
flohump May 21, 2024
8050353
Merge pull request #649 from tscheypidi/develop
tscheypidi May 22, 2024
de1adaf
Merge branch 'develop' of github.com:magpiemodel/magpie into f_forest…
flohump May 22, 2024
580b922
Merge pull request #673 from flohump/f_forestryMay24
flohump May 22, 2024
de0ce46
small bugfix in output scripts call in start scripts
FelicitasBeier May 22, 2024
19d74d5
resolved merge conflicts
pvjeetze May 22, 2024
625a369
changelog
pvjeetze May 22, 2024
f7efd46
typos
pvjeetze May 22, 2024
c4677ad
changed Deep Dive start script: all are based on NPI now
FelicitasBeier May 23, 2024
5210068
addressed review comments
pvjeetze May 23, 2024
ac813f0
updated FSEC water script
FelicitasBeier May 23, 2024
390afbd
minor streamlining of code
pvjeetze May 23, 2024
caa8ec0
reverted main.gms download paths
pvjeetze May 23, 2024
cfbdf80
update realization description of 41_AEI module
FelicitasBeier May 23, 2024
b70d512
update input data
FelicitasBeier May 23, 2024
e2f3698
fixed division by zero in preloop and updated changelog
DavidhoPIK May 23, 2024
185fedc
recovered original behaviour for <0 case
DavidhoPIK May 23, 2024
9e5ffd1
carbon density fix
pvjeetze May 23, 2024
b9c2b18
Move CHANGELOG entry to fixed
DavidhoPIK May 23, 2024
301a4b7
removed >= 0 check for better readability, added analogous change for…
DavidhoPIK May 24, 2024
88b731d
Merge branch 'fix-division-by-zero-in-yield-calibration' of https://g…
DavidhoPIK May 24, 2024
4d14fcb
Merge pull request #679 from DavidhoPIK/fix-division-by-zero-in-yield…
DavidhoPIK May 24, 2024
9580188
added interface vm_land_other to facilitate emissions calculations
pvjeetze May 24, 2024
a48cf60
not used fix
pvjeetze May 24, 2024
8c8ee29
other land bound fix
pvjeetze May 24, 2024
1cfad9d
reodered dimensions of new parameters and variables in line with modu…
pvjeetze May 27, 2024
43d3496
redefined p35_forest_recovery_area to improve reporting
pvjeetze May 27, 2024
74fd1a8
parameter not needed
pvjeetze May 27, 2024
b846b24
max forest recovery fix
pvjeetze May 27, 2024
58cc585
Merge pull request #676 from pvjeetze/f_pForest
pvjeetze May 28, 2024
5514f08
Merge branch 'develop' into updateMehta2024
FelicitasBeier May 28, 2024
01fa7a3
merged solve conflict in scenario config
FelicitasBeier May 28, 2024
77d5df1
Merge pull request #672 from FelicitasBeier/updateMehta2024
FelicitasBeier May 28, 2024
1ef1ccc
bugfix othernat
flohump May 29, 2024
b438f43
Merge pull request #681 from pvjeetze/f_pForest
flohump May 30, 2024
d81391a
modified agmip merge report script to use piamInterfaces
jdrtommey May 24, 2024
315b9a0
bugfix negative values in p35_forest_recovery_area
flohump Jun 3, 2024
b7b5323
bugfix negative values in p35_land_restoration
flohump Jun 4, 2024
ce151bc
bugfix test_runs.R
flohump Jun 4, 2024
d74c411
change the agmip_merge_report script to start in 1995
jdrtommey Jun 4, 2024
1503fe7
Merge pull request #668 from jdrtommey/jdrt/switch_agmip_report_to_pi…
jdrtommey Jun 4, 2024
c5a0c57
update
flohump Jun 4, 2024
11a5680
bugfix max forest recovery
flohump Jun 4, 2024
48c1208
bugfix
flohump Jun 4, 2024
2ed583e
reverting back pcm_max_forest_est
flohump Jun 5, 2024
efb7085
Merge branch 'f_pForest' of github.com:pvjeetze/magpie into f_pForest
flohump Jun 5, 2024
50923e7
Revert "bugfix"
flohump Jun 5, 2024
7c99ab6
Revert "bugfix max forest recovery"
flohump Jun 5, 2024
05e3dc3
added time dimension to potential forest area
pvjeetze Jun 5, 2024
a3cda4f
Merge branch 'f_pForest' of https://github.com/pvjeetze/magpie into f…
pvjeetze Jun 5, 2024
79737dd
update defaults from 2020 to 2025
flohump Jun 6, 2024
d10387b
bugfix
flohump Jun 7, 2024
772f321
bugfix
flohump Jun 7, 2024
b369996
update input data
flohump Jun 7, 2024
67598ad
bugfix 2025
flohump Jun 8, 2024
61464e8
update FSEC
flohump Jun 8, 2024
00040a9
bugfix
flohump Jun 8, 2024
119137e
bugfix
flohump Jun 9, 2024
d8d4ff2
Merge branch 'develop' of github.com:magpiemodel/magpie into f_pForest
flohump Jun 10, 2024
3f40cfc
Merge pull request #682 from pvjeetze/f_pForest
flohump Jun 10, 2024
4d6e186
magpie release 4.8.0
pascal-sauer Jun 10, 2024
14a3a4e
degree symbol caused goxygen pdf problems
pascal-sauer Jun 10, 2024
f6792ba
bugfix disaggregation
flohump Jun 10, 2024
3355cf0
bugfix warning
flohump Jun 10, 2024
b2813f7
bugfix warning
flohump Jun 10, 2024
4cf96d1
revert zero weight note
flohump Jun 11, 2024
956674e
Merge pull request #685 from pvjeetze/f_pForest
flohump Jun 11, 2024
b29454d
Merge branch 'develop' of github.com:magpiemodel/magpie into develop
pascal-sauer Jun 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ if (isTRUE(rownames(installed.packages(priority = "NA")) == "renv")) {
}

# in case bootstrapping fails halfway, install piamenv and rely on requirement auto-fixing
if (tryCatch(packageVersion("piamenv"),
error = function(e) package_version("0.0")) < package_version("0.3.4")) {
if (tryCatch(utils::packageVersion("piamenv") < "0.3.4", error = function(error) TRUE)) {
renv::install("piamenv", prompt = FALSE)
}
36 changes: 19 additions & 17 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,28 @@ if (tryCatch(utils::packageVersion("gms") < gmsRequiredVersion, error = function
}

message("Checking files for tabs... ", appendLF = FALSE)
gms::checkNoTabs(pattern = "\\.(R|Rprofile|gms|cfg|bib)$", excludeFolders = c("output", "renv", ".git"))
gms::checkNoTabs(pattern = "\\.(R|Rprofile|gms|cfg|bib)$",
excludeFolders = c("output", "renv", ".git"))
message("done.")

# run codeCheck
invisible(gms::codeCheck(strict = TRUE))
message("")
stagedFiles <- system("git diff --cached --name-only", intern = TRUE)

# run codeCheck only if .gms file is staged
if (any(endsWith(stagedFiles, ".gms"))) {
invisible(gms::codeCheck(strict = TRUE))
message("")
}


# make sure that files are not too big
maxfilesize <- function(max) {
files <- union(system("git ls-tree -r HEAD --name-only", intern = TRUE),
system("git diff --cached --name-only", intern = TRUE))
out <- data.frame(files = files, size = round(file.size(files) / 1024, 2))
out <- out[!is.na(out$size), ]
out <- out[out$size > max, ]
if (nrow(out) > 0) {
stop(nrow(out), " files with size > ", max, "kB detected: \n",
paste0(out$files, " (", out$size, "kB)", collapse = "\n"))
}
message("All files are smaller than ", max, "kB\n")
}
maxFilesize <- 250 # kB

maxfilesize(250)
files <- union(system("git ls-tree -r HEAD --name-only", intern = TRUE), stagedFiles)
out <- data.frame(files = files, size = round(file.size(files) / 1024, 2))
out <- out[!is.na(out$size), ]
out <- out[out$size > maxFilesize, ]
if (nrow(out) > 0) {
stop(nrow(out), " files with size > ", maxFilesize, "kB detected: \n",
paste0(out$files, " (", out$size, "kB)", collapse = "\n"))
}
message("All files are smaller than ", maxFilesize, "kB\n")
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.3",
"version": "4.8.0",
"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-10"
}
67 changes: 65 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,71 @@

# Changelog

All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).


## [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
- **80_optimization** Simplifed cycling through CONOPT4, CONOPT4 with OPTFILE, CONOPT4 without preprocessing and CONOPT3.
- **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`
- **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
- **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
- **73_timber** added interface `im_timber_prod_cost`
- **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
- **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`
- **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
- **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


## [4.7.3] - 2024-04-12

### changed
Expand All @@ -23,6 +84,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- **56_ghg_policy** added NDC scenarios
- **60_bioenergy** added NDC scenarios
- **scripts** start script for EAT2p0 Deep Dive project

### fixed
- **15_food** Small number rather 0 in condition checking calorie balancing
- **34_urban** `static` realization was not working because `vm_carbon_stock` was referenced without the set `stockType`
Expand Down Expand Up @@ -871,7 +933,8 @@ 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.0...develop
[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
25 changes: 23 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
cff-version: 1.0.3
message: If you use this model, please cite it as below.
type: software
authors:
- family-names: Dietrich
given-names: Jan Philipp
Expand Down Expand Up @@ -118,6 +119,12 @@ authors:
affiliation: "Potsdam Institute for Climate Impact Research"
email: [email protected]

- family-names: Steinhauser
given-names: Jan
orcid: https://orcid.org/0000-0002-5989-6855
affiliation: "Potsdam Institute for Climate Impact Research"
email: [email protected]

- family-names: Lotze-Campen
given-names: Hermann
orcid: https://orcid.org/0000-0002-0003-5508
Expand All @@ -131,12 +138,26 @@ authors:
email: [email protected]

title: MAgPIE - An Open Source land-use modeling framework
version: 4.7.3
date-released: 2024-04-12
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.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
total costs of agricultural production for each grid cell. The objective function of
the land use model is to minimize total cost of production for a given amount of
regional food and bioenergy demand. Regional food energy demand is defined for an
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.8.0
date-released: 2024-06-10
repository-code: https://github.com/magpiemodel/magpie
keywords:
- landuse
- modeling
- model
- nlp
- partial equilibrium
doi: 10.5281/zenodo.1418752
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.0 can be found at
https://rse.pik-potsdam.de/doc/magpie/4.8.0/

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.0/#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
Loading