Project

General

Profile

« Previous | Next » 

Revision 2d6af3b8

Added by Benoit Parmentier over 11 years ago

gam fusion prediction, minor output path changes following debugging

View differences:

climate/research/oregon/interpolation/GAM_fusion_analysis_raster_prediction_multisampling.R
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)
climate/research/oregon/interpolation/GAM_fusion_function_multisampling.R
261 261
    #j indicate which month is predicted, var indicates TMIN or TMAX
262 262
    data_name<-paste(var,"_bias_LST_month_",j,"_",cname[k],"_",prop_month,
263 263
                     "_",run_samp,sep="")
264
    raster_name<-file.path(out_path,paste("fusion",data_name,out_prefix,".tif", sep=""))
264
    raster_name<-file.path(out_path,paste("fusion_",data_name,out_prefix,".tif", sep=""))
265 265
    list_out_filename[[k]]<-raster_name
266 266
  }
267 267

  

Also available in: Unified diff