Project

General

Profile

« Previous | Next » 

Revision 660e8459

Added by Benoit Parmentier over 8 years ago

testing debugged code for region 5, Africa from command line

View differences:

climate/research/oregon/interpolation/master_script_stage_7.R
14 14

  
15 15
#AUTHOR: Benoit Parmentier                                                                        
16 16
#CREATED ON: 01/01/2016  
17
#MODIFIED ON: 06/24/2016  
17
#MODIFIED ON: 07/05/2016  
18 18
#PROJECT: NCEAS INPLANT: Environment and Organisms                                                                           
19 19

  
20 20
#First source these files:
......
40 40
#Rscript /nobackupp8/bparmen1/env_layers_scripts/master_script_stage_7_06192016.R TMAX /nobackupp6/aguzman4/climateLayers/out/ reg4 reg4_1999 /nobackupp8/bparmen1/climateLayers/out/reg4 TRUE 1999 6 1e+07 use_edge_weights rmse 19990107 19990108 /nobackupp8/bparmen1/NEX_data/regions_input_files/r_mask_LST_reg4.tif /nobackupp6/aguzman4/climateLayers/out/reg4/assessment/output_reg4_1999/df_assessment_files_reg4_1999_reg4_1999.txt python ac_testing FALSE Int16 100 -100,100
41 41
#run mosaic for ac testing, n
42 42
#Rscript /nobackupp8/bparmen1/env_layers_scripts/master_script_stage_7_06192016.R TMAX /nobackupp6/aguzman4/climateLayers/out/ reg4 reg4_1999 /nobackupp8/bparmen1/climateLayers/out/reg4 TRUE 1999 6 1e+07 use_edge_weights n 19990107 19990108 /nobackupp8/bparmen1/NEX_data/regions_input_files/r_mask_LST_reg4.tif /nobackupp6/aguzman4/climateLayers/out/reg4/assessment/output_reg4_1999/df_assessment_files_reg4_1999_reg4_1999.txt python ac_testing FALSE Int16 100 -100,100
43

  
44
#Rscript /nobackupp8/bparmen1/env_layers_scripts/master_script_stage_7_06192016.R TMAX /nobackupp6/aguzman4/climateLayers/out/ reg5 reg5_1985 /nobackupp6/aguzman4/climateLayers/out/reg5/mosaicsAc/ TRUE 1981 6 1e+07 use_edge_weights n 19910101 19910101 /nobackupp8/bparmen1/NEX_data/regions_input_files/r_mask_LST_reg5.tif /nobackupp6/aguzman4/climateLayers/out/reg5/assessment/output_reg5_1985/df_assessment_files_reg5_1985_reg5_1985.txt python ac_testing FALSE Int16 100 -100,100
43
#Region 5: test
44
#Rscript /nobackupp8/bparmen1/env_layers_scripts/master_script_stage_7_07052016.R TMAX /nobackupp6/aguzman4/climateLayers/out/ reg5 reg5_1991 /nobackupp6/aguzman4/climateLayers/out/reg5/mosaicsAc/ TRUE 1991 6 1e+07 use_edge_weights rmse 19910101 19910103 /nobackupp8/bparmen1/NEX_data/regions_input_files/r_mask_LST_reg5.tif /nobackupp6/aguzman4/climateLayers/out/reg5/assessment/output_reg5_1991/df_assessment_files_reg5_1991_reg5_1991.txt python ac_testing FALSE Int16 100 -100,100
45 45

  
46 46

  
47 47
#script /nobackupp8/bparmen1/env_layers_scripts/master_script_stage_7_06192016.R TMAX /nobackupp6/aguzman4/climateLayers/out/ reg5 reg5_1985 /nobackupp6/aguzman4/climateLayers/out/reg5/mosaicsAc/ TRUE 1985 6 1e+07 use_edge_weights n 19850101 19850101 /nobackupp8/bparmen1/NEX_data/regions_input_files/r_mask_LST_reg5.tif /nobackupp6/aguzman4/climateLayers/out/reg5/assessment/output_reg5_1985/df_assessment_files_reg5_1985_reg5_1985.txt python ac_testing FALSE Int16 100 -100,100
......
82 82

  
83 83
#script_path <- "/home/parmentier/Data/IPLANT_project/env_layers_scripts"
84 84
script_path <- "/nobackupp8/bparmen1/env_layers_scripts" #path to script
85
function_mosaicing_functions <- "global_run_scalingup_mosaicing_function_07012016.R" #PARAM12
86
function_mosaicing <-"global_run_scalingup_mosaicing_07012016.R"
85
function_mosaicing_functions <- "global_run_scalingup_mosaicing_function_07052016.R" #PARAM12
86
function_mosaicing <-"global_run_scalingup_mosaicing_07052016.R"
87 87
source(file.path(script_path,function_mosaicing)) #source all functions used in this script 
88 88
source(file.path(script_path,function_mosaicing_functions)) #source all functions used in this script 
89 89

  
......
131 131
#day_start <- "19990701" #PARAM 12 arg 12
132 132
#day_end <- "19990703" #PARAM 13 arg 13
133 133
day_start <- "19910101" #PARAM 12 arg 12
134
day_end <- "19910101" #PARAM 13 arg 13
134
day_end <- "19910103" #PARAM 13 arg 13
135 135
infile_mask <- "/nobackupp8/bparmen1/NEX_data/regions_input_files/r_mask_LST_reg5.tif" #PARAM 14, arg 14
136 136
df_assessment_files_name <- "/nobackupp6/aguzman4/climateLayers/out/reg5/assessment/output_reg5_1991/df_assessment_files_reg5_1991_reg5_1991.txt"  # data.frame with all files used in assessmnet, PARAM 15
137 137
#df_assessment_files_name <- "/nobackupp6/aguzman4/climateLayers/out/reg5/assessment/output_reg5_1985/df_assessment_files_reg5_1985_reg5_1985.txt"
......
282 282
#debug(debug_fun_test)
283 283
#debug_fun_test(list_param_raster_prediction)
284 284
i <- 1 #this select the first year of list_year_predicted
285
function_mosaicing_functions <- "global_run_scalingup_mosaicing_function_06232016.R" #PARAM12
286
function_mosaicing <-"global_run_scalingup_mosaicing_06232016.R"
287
source(file.path(script_path,function_mosaicing)) #source all functions used in this script 
288
source(file.path(script_path,function_mosaicing_functions)) #source all functions used in this script 
285
#function_mosaicing_functions <- "global_run_scalingup_mosaicing_function_07012016.R" #PARAM12
286
#function_mosaicing <-"global_run_scalingup_mosaicing_07012016.R"
287
#source(file.path(script_path,function_mosaicing)) #source all functions used in this script 
288
#source(file.path(script_path,function_mosaicing_functions)) #source all functions used in this script 
289 289

  
290 290
if (stages_to_run[7]==7){
291 291
  assessment_prediction_obj <- run_mosaicing_prediction_fun(i,list_param_run_mosaicing_prediction)

Also available in: Unified diff