Skip to content
Snippets Groups Projects
Commit a9c84431 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Downscaling configuration file for R.

parent 14c048a7
No related branches found
No related tags found
No related merge requests found
# import
library(pathlibr)
# ------------------------------------------------------------------------------
# Input paths ------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Climax project directory path
# root <- pathlibr::Path$new('/mnt/CEPH_PROJECTS/FACT_CLIMAX/')
root <- pathlibr::Path$new('W:/')
# path to Euro-Cordex simulations
mod_path <- root$join('CORDEX')
# path to in-situ observations
obs_path <- root$join('OBS_DATA')
# ------------------------------------------------------------------------------
# Statistical downscaling configuration ----------------------------------------
# ------------------------------------------------------------------------------
# variable to downscale
variable <- 'tasmin' # (tasmin, tasmax, pr)
# emission scenario
scenario<-"rcp85" # (rcp45, rcp85, historical)
# years in historical period
hist_years <- 1950:2005
# years in projections
proj_years <- 2006:2100
# years for the calibration
cal_years <- 1981:2010
# years to correct
cor_years <- 1950:2100
# moving window centered on each DOY
wday.width<-91
# definition of quantiles
minq<-0.01; maxq<-0.99; incq<-0.01
# frequency adjustment for precipitation?
FA <- TRUE
# ------------------------------------------------------------------------------
# Euro-Cordex simulations to downscale -----------------------------------------
# ------------------------------------------------------------------------------
# list of models to process
inventory <- readRDS(paste0(mod_path,"/",variable,"_inventory.RDS")) #or a list for the selected models
CORDEX.models<-unique(paste0(inventory$gcm,"+",inventory$institute_rcm)) # total number of used models
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment