Commit f9cc53d1 authored by David Chen's avatar David Chen
Browse files

GGCMIs start script and preprocessing reporting of subtype

parent 6472555f
......@@ -14,12 +14,13 @@ start_preprocessing <- function(cfg, debug=FALSE){
message(paste0("Start preprocessing for \n climatescenario: ",cfg$climatetype, "\n rev: ",cfg$revision,
"\n regionmapping: ", cfg$regionmapping, "\n clustertype: ",cfg$ctype,
"\n LPJmL-Versions: ", paste(names(cfg$lpjml), cfg$lpjml, sep = "->", collapse = ", "),
"\n clusterweight: ", paste(names(cfg$clusterweight), cfg$clusterweight, sep = ":", collapse = ", ")))
"\n clusterweight: ", paste(names(cfg$clusterweight), cfg$clusterweight, sep = ":", collapse = ", "),
"\n isimip yield subtype: ", paste(names(cfg$isimip), cfg$isimip, sep = ":", collapse = ", ")))
madrat::setConfig(regionmapping=cfg$regionmapping, nocores=cfg$nocores, debug=debug)
madrat::retrieveData(model="MAgPIE", rev=cfg$revision, dev=cfg$dev)
madrat::retrieveData(model="CellularMAgPIE", rev=cfg$revision, dev=cfg$dev,
madrat::retrieveData(model="MAgPIE", rev=cfg$revision,)
madrat::retrieveData(model="CellularMAgPIE", rev=cfg$revision,
ctype=cfg$ctype, lpjml=cfg$lpjml,
climatetype=cfg$climatetype, clusterweight=cfg$clusterweight, isimip=cfg$isimip)
madrat::retrieveData(model="Validation", rev=cfg$revision, dev=cfg$dev)
madrat::retrieveData(model="Validation", rev=cfg$revision)
}
#################################################
#### Script to start a MAgPIE preprocessing ####
#### Testing various GGCMIs ####
#################################################
library(lucode2)
source("preprocessing.R")
#set defaults
source("config/default.cfg")
cfg$dev <- paste0(cfg$dev, "+ISIMIPyields")
#NOTE THAT pDSSAT does not have ssp370 yet!
ggcms <- c("EPIC-IIASA", "pDSSAT", "CYGMA1p74")
gcms <- c("ukesm1-0-ll", "gfdl-esm4")
rcps_isi <- c("ssp126", "ssp370", "ssp585")
for (ggcm in ggcms){
for (gcm in gcms ){
for (rcp in rcps_isi){
isimip <- paste0(ggcm, ":", gcm, ":", rcp, ":", "default")
cfg$isimip <- paste0("yields:", isimip, ":3b")
#start preprocessing run
start_preprocessing(cfg=cfg,debug=TRUE)
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment