104 |
104 |
script_path<-list_param_raster_prediction$script_path
|
105 |
105 |
interpolation_method<-list_param_raster_prediction$interpolation_method
|
106 |
106 |
|
107 |
|
setwd(in_path)
|
108 |
|
|
|
107 |
#setwd(in_path)
|
|
108 |
setwd(out_path)
|
109 |
109 |
#Sourcing in the master script to avoid confusion on the latest versions of scripts and functions!!!
|
110 |
110 |
|
111 |
111 |
#source(file.path(script_path,"sampling_script_functions_03122013.R"))
|
... | ... | |
199 |
199 |
file=log_fname,sep="\n")
|
200 |
200 |
t1<-proc.time()
|
201 |
201 |
j=12
|
202 |
|
#browser()
|
|
202 |
#browser() #Missing out_path for gam_fusion list param!!!
|
203 |
203 |
if (interpolation_method=="gam_fusion"){
|
204 |
|
list_param_runClim_KGFusion<-list(j,s_raster,covar_names,lst_avg,list_models,dst,var,y_var_name, out_prefix)
|
205 |
|
names(list_param_runClim_KGFusion)<-c("list_index","covar_rast","covar_names","lst_avg","list_models","dst","var","y_var_name","out_prefix")
|
|
204 |
list_param_runClim_KGFusion<-list(j,s_raster,covar_names,lst_avg,list_models,dst,var,y_var_name, out_prefix,out_path)
|
|
205 |
names(list_param_runClim_KGFusion)<-c("list_index","covar_rast","covar_names","lst_avg","list_models","dst","var","y_var_name","out_prefix","out_path")
|
206 |
206 |
#source(file.path(script_path,"GAM_fusion_function_multisampling_03122013.R"))
|
207 |
207 |
clim_method_mod_obj<-mclapply(1:12, list_param=list_param_runClim_KGFusion, runClim_KGFusion,mc.preschedule=FALSE,mc.cores = 6) #This is the end bracket from mclapply(...) statement
|
208 |
208 |
#test<-runClim_KGFusion(1,list_param=list_param_runClim_KGFusion)
|
gam fusion prediction, minor output path changes following debugging