Project

General

Profile

« Previous | Next » 

Revision 292fe000

Added by Benoit Parmentier almost 9 years ago

adding additional arguments to run stage 8 from shell

View differences:

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/09/2016  
16
#MODIFIED ON: 02/10/2016  
17 17
#PROJECT: NCEAS-IPLANT-NASA: Environment Layers                                                                           
18 18

  
19 19
#First source these files:
......
43 43
#list_year_predicted <- args[7] # enter a range, min and max year #arg 7
44 44
#num_cores <- args[8] #number of cores used # param 13, arg 8
45 45
#max_mem <- args[9] # maximum memory, param 21
46
in_dir_list_filename <- args[10]
46
#in_dir_list_filename <- args[10]
47 47
#in_dir_list_filename <- "/data/project/layers/commons/NEX_data/reg4_assessment/stage6_reg4_in_dir_list_02072016.txt"
48
run_figure_by_year <- args[11] # param 10, arg 7, if true will create figures for individual years...
48
#run_figure_by_year <- args[11] # param 10, arg 7, if true will create figures for individual years...
49 49

  
50 50
#var = "TMAX" # variable being interpolated #param 1, arg 1
51 51
#in_dir1 = "/nobackupp6/aguzman4/climateLayers/out/" #param 5, arg 2
......
109 109
script_path <- "/home/parmentier/Data/IPLANT_project/env_layers_scripts"
110 110
function_assessment_part1_functions <- "global_run_scalingup_assessment_part1_functions_02112015.R" #PARAM12
111 111
function_assessment_part1a <-"global_run_scalingup_assessment_part1a_01042016.R"
112
function_assessment_part2 <- "global_run_scalingup_assessment_part2_02072016.R"
112
function_assessment_part2 <- "global_run_scalingup_assessment_part2_02092016.R"
113 113
function_assessment_part2_functions <- "global_run_scalingup_assessment_part2_functions_01032016.R"
114
function_assessment_part3 <- "global_run_scalingup_assessment_part3_02092016.R"
114
function_assessment_part3 <- "global_run_scalingup_assessment_part3_02102016.R"
115 115
source(file.path(script_path,function_assessment_part1_functions)) #source all functions used in this script 
116 116
source(file.path(script_path,function_assessment_part1a)) #source all functions used in this script 
117 117
source(file.path(script_path,function_assessment_part2)) #source all functions used in this script 
......
264 264
            "multiple_region","countries_shp","plot_region","num_cores",
265 265
            "region_name","df_assessment_files_name","threshold_missing_day","year_predicted"
266 266
      )
267
      #undebug(run_assessment_plotting_prediction_fun)
267
      #debug(run_assessment_plotting_prediction_fun)
268 268
      df_assessment_figures_files <-
269 269
      run_assessment_plotting_prediction_fun(list_param_run_assessment_part2_plotting)
270 270
      l_list_param_run_assessment_part2_plotting[[j]] <- list_param_run_assessment_part2_plotting
......
277 277
  #function_assessment_part2 <- "global_run_scalingup_assessment_part2_01032016.R"
278 278
  #source(file.path(script_path,function_assessment_part2)) #source all functions used in this script
279 279

  
280
  debug(run_assessment_combined_region_plotting_prediction_fun)
280
  #debug(run_assessment_combined_region_plotting_prediction_fun)
281 281
  df_assessment_combined_figures_files <-
282 282
  run_assessment_combined_region_plotting_prediction_fun(list_param_run_assessment_combined_region_plotting_prediction)
283 283
}

Also available in: Unified diff