Project

General

Profile

« Previous | Next » 

Revision 10297b73

Added by Benoit Parmentier almost 9 years ago

master script stage 2_3 changes in query to avoid duplication of climatology database queries

View differences:

climate/research/oregon/interpolation/master_script_stage_2_3.R
68 68
source(file.path(script_path,"GAM_fusion_function_multisampling_validation_metrics.R"))
69 69

  
70 70
#sub sampling of stations
71
source(file.path(script_path2,"subsampling_data_func.R")) #Include GAM_day
71
source(file.path(script_path2,"subsampling_data_function.R")) #Include GAM_day
72 72

  
73 73
#stages_to_run<-c(0,2,3,4,5) #MRun only raster fitting, prediction and assessemnt (providing lst averages, covar brick and met stations)
74 74
#stages_to_run<-c(0,2,3,0,0)
......
311 311
#max number of cells to read in memory
312 312
max_mem<-args[11]
313 313
#rasterOptions(maxmemory=1e+07,timer=TRUE)
314
out_path_daily <- file.path(out_path,range_years[1]) #<-c("1992","1993") #right bound not included in the range!!
315
out_path_clim <- file.path(out_path,paste("clim_",range_years_clim[1],"_",range_years_clim[2],sep="")) #<-c("1990","2001") #right bound not included in the range!!
314 316

  
315 317
#Collect all parameters in a list
316 318
list_param_raster_prediction<-list(list_param_data_prep,screen_data_training,
317 319
                                seed_number,nb_sample,step,constant,prop_minmax,dates_selected,
318 320
                                seed_number_month,nb_sample_month,step_month,constant_month,prop_minmax_month,
319
                                list_models,list_models2,interp_method2,lst_avg,out_path,script_path,use_clim_image,join_daily,
321
                                list_models,list_models2,interp_method2,lst_avg,out_path_daily,out_path_clim,script_path,use_clim_image,join_daily,
320 322
                                interpolation_method,num_cores,max_mem)
321 323
names(list_param_raster_prediction)<-c("list_param_data_prep","screen_data_training",
322 324
                                "seed_number","nb_sample","step","constant","prop_minmax","dates_selected",
323 325
                                "seed_number_month","nb_sample_month","step_month","constant_month","prop_minmax_month",
324
                                "list_models","list_models2","interp_method2","lst_avg","out_path","script_path","use_clim_image","join_daily",
326
                                "list_models","list_models2","interp_method2","lst_avg","out_path","out_path_clim","script_path","use_clim_image","join_daily",
325 327
                                "interpolation_method","num_cores","max_mem")
326 328

  
327 329
#debug(raster_prediction_fun)

Also available in: Unified diff