Revision d365cff3
Added by Benoit Parmentier over 8 years ago
climate/research/oregon/interpolation/master_script_stage_8.R | ||
---|---|---|
13 | 13 |
#STAGE 8: Comparison of predictions across regions and years with figures generation. |
14 | 14 |
#AUTHOR: Benoit Parmentier |
15 | 15 |
#CREATED ON: 12/29/2015 |
16 |
#MODIFIED ON: 02/17/2016
|
|
16 |
#MODIFIED ON: 03/21/2016
|
|
17 | 17 |
#PROJECT: NCEAS-IPLANT-NASA: Environment Layers |
18 | 18 |
|
19 | 19 |
#First source these files: |
... | ... | |
23 | 23 |
#module load pythonkits/gdal_1.10.0_python_2.7.3_nex |
24 | 24 |
|
25 | 25 |
## TODO: |
26 |
# Add assessment part 2 (figures): still testing |
|
27 | 26 |
# Make this callable from the shell |
28 | 27 |
# Adapt for python script |
29 | 28 |
# Fix figure for part2 |
30 | 29 |
# Call also use library(optparse) |
31 | 30 |
|
31 |
#COMMENTS: Assessment region23 from NEX runs |
|
32 |
|
|
32 | 33 |
################################################################################################## |
33 | 34 |
# |
34 | 35 |
### PARAMETERS DEFINED IN THE SCRIPT |
... | ... | |
148 | 149 |
#master directory containing the definition of tile size and tiles predicted |
149 | 150 |
#in_dir1 <- "/nobackupp6/aguzman4/climateLayers/out/" #param 5, arg 2 |
150 | 151 |
in_dir <- args[2] #param 5, arg 2 |
151 |
in_dir <- "/data/project/layers/commons/NEX_data/reg5_assessment"
|
|
152 |
in_dir <- "/data/project/layers/commons/NEX_data/reg23_assessment"
|
|
152 | 153 |
|
153 | 154 |
#in_dir <- "" #PARAM 0 |
154 | 155 |
#y_var_name <- "dailyTmax" #PARAM1 |
... | ... | |
158 | 159 |
#region_names <- c("reg23","reg4") #selected region names, |
159 | 160 |
#run assessment by region, this is a unique region only |
160 | 161 |
region_name <- args[3] #param 6, arg 3 |
161 |
region_name <- c("reg5") #param 6, arg 3
|
|
162 |
region_name <- c("reg23") #param 6, arg 3
|
|
162 | 163 |
|
163 | 164 |
#out_prefix <- "run_global_analyses_pred_12282015" #param 7, arg 4 |
164 | 165 |
#out_dir <- "/nobackupp8/bparmen1/" #param 8, arg 5 |
165 | 166 |
#out_dir <-paste(out_dir,"_",out_prefix,sep="") |
166 | 167 |
create_out_dir_param <- TRUE #param 9, arg 6 |
167 | 168 |
out_prefix <- args[4] #param 7, arg 4 |
168 |
out_suffix <- "global_analyses_overall_assessment_reg5_02172016"
|
|
169 |
out_suffix <- "global_analyses_overall_assessment_reg23_03212016"
|
|
169 | 170 |
|
170 | 171 |
out_dir <- args[5] #param 8, arg 5 |
171 |
out_dir <- "/data/project/layers/commons/NEX_data/reg5_assessment"
|
|
172 |
out_dir <- "/data/project/layers/commons/NEX_data/reg23_assessment"
|
|
172 | 173 |
|
173 | 174 |
#out_dir <-paste(out_dir,"_",out_prefix,sep="") |
174 | 175 |
create_out_dir_param <- args[6] #param 9, arg 6 |
... | ... | |
202 | 203 |
max_mem <- args[9] #param 21 |
203 | 204 |
max_mem <- 1e+07 |
204 | 205 |
#in_dir_list_filename <- args[10] #param 22 |
205 |
in_dir_list_filename <- "/data/project/layers/commons/NEX_data/reg5_assessment/stage6_reg5_in_dir_list_02172016.txt"
|
|
206 |
in_dir_list_filename <- "/data/project/layers/commons/NEX_data/reg23_assessment/stage6_reg23_in_dir_list_03212016.txt"
|
|
206 | 207 |
#in_dir_list_filename <- "/data/project/layers/commons/NEX_data/reg4_assessment/stage6_reg4_in_dir_list_02072016.txt" |
207 | 208 |
run_figure_by_year <- args[11] # param 10, arg 7, if true will create figures for individual years... |
208 | 209 |
run_figure_by_year <- TRUE # param 10, arg 7, if true will create figures for individual years... |
Also available in: Unified diff
running assessment overall for region 23