Data repository - Substitution of ruminant meat with microbial protein in forward-looking global land-use scenarios towards 2050

This repository contains modelling results of a study conducted with the global multi-regional MAgPIE open-source land-use modelling framework version 4.3.4.
https://github.com/magpiemodel/magpie/releases/tag/v4.3.4
https://zenodo.org/record/4730378

Contact:
Florian Humpenöder
Potsdam Institute for Climate Impact Research
humpenoeder@pik-potsdam.de
January 2022

The 4 scenarios in the subfolder "model_runs" have been produced with the included R script "paper_scp.R".
For reproducing the model runs, the following 3 steps are required:
#1 MAgPIE 4.3.4 needs to be downloaded and unpacked (see links above). MAgPIE requires GAMS and R. See https://github.com/magpiemodel/magpie for instructions.
#2 The R script "model_runs/paper_scp.R" needs to copied to the subfolder "scripts/start/projects/" in the MAgPIE directory (replace the existing file).
#3 From the MAgPIE main directory, the model runs can be started by invoking "Rscript start.R" on the command line (navigate to "projects" where "paper_scp" can be chosen).

The results of the 4 scenarios have been merged into a single RDS file "report_all_SCP44.rds" with the script "scripts/output/merge_report.R" in the MAgPIE directory.

The subfolder "plotting_scripts" includes the R script "plots_SCP44.R", which contains the source code for data analysis and visualization of results based on the data file "report_all_SCP44.rds".
Data analysis and visualization of results are performed using the open-source R library ggplot2 in combination with R libraries that are specifically built for processing MAgPIE outputs. 
These libraries are available open source at https://github.com/pik-piam.

Information on GAMS and R version:

GAMS version: 35.1.0

R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: SUSE Linux Enterprise Server 12 SP3

locale:
[1] C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] ggiraphExtra_0.3.0 ggiraph_0.8.1      mip_0.131.3        RColorBrewer_1.1-2
 [5] quitte_0.3090.0    patchwork_1.1.1    ggrepel_0.9.1      data.table_1.14.0 
 [9] luscale_2.23.2     ggplot2_3.3.5      luplot_3.51.2      magpie4_1.105.1   
[13] gdx_1.51.4         magclass_6.0.8     gdxrrw_1.0.2      

loaded via a namespace (and not attached):
  [1] colorspace_2.0-2    ellipsis_0.3.2      sjlabelled_1.1.8   
  [4] htmlTable_2.2.1     base64enc_0.1-3     rstudioapi_0.13    
  [7] fansi_0.5.0         qualV_0.3-3         xml2_1.3.2         
 [10] splines_3.6.3       knitr_1.34          sjmisc_2.8.9       
 [13] spam_2.7-0          Formula_1.2-4       jsonlite_1.7.2     
 [16] cluster_2.1.2       png_0.1-7           rworldmap_1.3-6    
 [19] shiny_1.6.0         readr_2.0.1         compiler_3.6.3     
 [22] httr_1.4.2          backports_1.2.1     assertthat_0.2.1   
 [25] Matrix_1.2-18       fastmap_1.1.0       lazyeval_0.2.2     
 [28] later_1.3.0         htmltools_0.5.2     tools_3.6.3        
 [31] igraph_1.2.6        dotCall64_1.0-1     gtable_0.3.0       
 [34] glue_1.4.2          reshape2_1.4.4      dplyr_1.0.7        
 [37] maps_3.3.0          gms_0.10.3          Rcpp_1.0.7         
 [40] cellranger_1.1.0    vctrs_0.3.8         writexl_1.4.0      
 [43] nlme_3.1-152        countrycode_1.3.0   insight_0.14.5     
 [46] xfun_0.25           stringr_1.4.0       mime_0.11          
 [49] lifecycle_1.0.0     magpiesets_0.44.4   mstools_0.2.3      
 [52] MASS_7.3-54         zoo_1.8-9           scales_1.1.1       
 [55] madrat_2.3.1        trafficlight_1.13.1 iamc_0.29.4        
 [58] hms_1.1.0           promises_1.2.0.1    mycor_0.1.1        
 [61] fields_12.5         yaml_2.2.1          gridExtra_2.3      
 [64] rpart_4.1-15        latticeExtra_0.6-29 stringi_1.7.4      
 [67] maptools_1.1-2      checkmate_2.0.0     ppcor_1.1          
 [70] nonparaeff_0.5-8    rlang_0.4.11        pkgconfig_2.0.3    
 [73] systemfonts_1.0.3   lattice_0.20-44     lusweave_1.46.1    
 [76] purrr_0.3.4         htmlwidgets_1.5.4   tidyselect_1.1.1   
 [79] plyr_1.8.6          magrittr_2.0.1      R6_2.5.1           
 [82] generics_0.1.0      Hmisc_4.5-0         DBI_1.1.1          
 [85] mgcv_1.8-31         pillar_1.6.2        foreign_0.8-81     
 [88] withr_2.4.2         survival_3.2-13     abind_1.4-5        
 [91] sp_1.4-5            nnet_7.3-16         tibble_3.1.4       
 [94] crayon_1.4.1        uuid_0.1-4          KernSmooth_2.23-16 
 [97] utf8_1.2.2          plotly_4.9.4.1      tzdb_0.1.2         
[100] viridis_0.6.1       jpeg_0.1-9          grid_3.6.3         
[103] readxl_1.3.1        forcats_0.5.1       digest_0.6.27      
[106] xtable_1.8-4        tidyr_1.1.3         httpuv_1.6.3       
[109] munsell_0.5.0       viridisLite_0.4.0 