Commit 8b464c57 authored by Kristine Karstens's avatar Kristine Karstens
Browse files

update config + changing output order for log file

parent ded6d43e
......@@ -9,7 +9,7 @@ cfg$regionmapping <- "config/regionmappingH12.csv"
# which LPJmL data set should be used
# see cmuellers landuse folder for available options
cfg$lpjml <- c(natveg = "LPJmL4_for_MAgPIE_84a69edd",
crop = "ggcmi_phase3_nchecks_fbed5c8b_irrig-is-rainf",
crop = "ggcmi_phase3_nchecks_fbed5c8b_newparam",
cgrazing = "LPJmL_cgrazing",
mowing = "LPJmL_mowing")
......
......@@ -11,13 +11,13 @@ start_preprocessing <- function(cfg, debug=FALSE){
if(!file.exists(cfg$regionmapping)) cfg$regionmapping <- paste0("config/",cfg$regionmapping)
if(is.null(cfg$dev)) cfg$dev <- ""
madrat::setConfig(regionmapping=cfg$regionmapping, nocores=cfg$nocores, debug=debug)
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 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,
ctype=cfg$ctype, lpjml=cfg$lpjml,
......
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