Commit b92d1af7 authored by Kristine Karstens's avatar Kristine Karstens
Browse files

update default and print important cfg settings in log

parent b0c6bcab
......@@ -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",
crop = "ggcmi_phase3_nchecks_fbed5c8b_irrig-is-rainf",
cgrazing = "LPJmL_cgrazing",
mowing = "LPJmL_mowing")
......@@ -24,7 +24,7 @@ cfg$climatetype <- "GFDL-ESM4:ssp370"
cfg$revision <- 4.59
# developer suffix for regional revision
cfg$dev <- ""
cfg$dev <- "SmashingPumpkins"
# aggregation clustering type, which is a combination of a single letter, indicating the cluster methodology, and a number,
# indicating the number of resulting clusters. Available methodologies are hierarchical clustering (h), normalized k-means clustering
......
......@@ -11,7 +11,10 @@ start_preprocessing <- function(cfg, debug=FALSE){
if(!file.exists(cfg$regionmapping)) cfg$regionmapping <- paste0("config/",cfg$regionmapping)
if(is.null(cfg$dev)) cfg$dev <- ""
message(paste0("Start preprocessing for ",cfg$climatetype," | rev",cfg$revision," | ",cfg$regionmapping," | ",cfg$ctype))
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 = ", ")))
madrat::setConfig(regionmapping=cfg$regionmapping, nocores=cfg$nocores, debug=debug)
madrat::retrieveData(model="MAgPIE", rev=cfg$revision, dev=cfg$dev)
......
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