Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
earth_observation_public
Climax
Commits
a9c84431
Commit
a9c84431
authored
3 years ago
by
Frisinghelli Daniel
Browse files
Options
Downloads
Patches
Plain Diff
Downscaling configuration file for R.
parent
14c048a7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/config.R
+55
-0
55 additions, 0 deletions
R/config.R
with
55 additions
and
0 deletions
R/config.R
0 → 100644
+
55
−
0
View file @
a9c84431
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment