Revision cf621ebf
Added by Benoit Parmentier about 11 years ago
climate/research/oregon/interpolation/GAM_fusion_analysis_raster_prediction_multisampling.R | ||
---|---|---|
12 | 12 |
# gam_daily, kriging_daily,gwr_daily,gam_CAI,gam_fusion,kriging_fusion,gwr_fusion and other options added. |
13 | 13 |
#For multiple time scale methods, the interpolation is done first at the monthly time scale then delta surfaces are added. |
14 | 14 |
#AUTHOR: Benoit Parmentier |
15 |
#DATE: 10/11/2013
|
|
15 |
#DATE: 11/03/2013
|
|
16 | 16 |
#PROJECT: NCEAS INPLANT: Environment and Organisms --TASK#568-- |
17 | 17 |
# |
18 | 18 |
# TO DO: |
... | ... | |
289 | 289 |
#test <- run_prediction_daily_deviation(1,list_param=list_param_run_prediction_daily_deviation) #This is the end bracket from mclapply(...) statement |
290 | 290 |
#test <- mclapply(1:9,list_param=list_param_run_prediction_daily_deviation,run_prediction_daily_deviation,mc.preschedule=FALSE,mc.cores = 9) #This is the end bracket from mclapply(...) statement |
291 | 291 |
|
292 |
method_mod_obj<-mclapply(1:nrow(daily_dev_sampling_dat),list_param=list_param_run_prediction_daily_deviation,run_prediction_daily_deviation,mc.preschedule=FALSE,mc.cores = 11) #This is the end bracket from mclapply(...) statement
|
|
292 |
method_mod_obj<-mclapply(1:nrow(daily_dev_sampling_dat),list_param=list_param_run_prediction_daily_deviation,run_prediction_daily_deviation,mc.preschedule=FALSE,mc.cores = 9) #This is the end bracket from mclapply(...) statement
|
|
293 | 293 |
save(method_mod_obj,file= file.path(out_path,paste("method_mod_obj_",interpolation_method,"_",y_var_name,out_prefix,".RData",sep=""))) |
294 | 294 |
|
295 | 295 |
} |
climate/research/oregon/interpolation/GAM_fusion_function_multisampling.R | ||
---|---|---|
880 | 880 |
sampling_dat$date[index_d],"_",sampling_dat$prop[index_d],"_",sampling_dat$run_samp[index_d],sep="") |
881 | 881 |
raster_name_delta<-file.path(out_path,paste(interpolation_method,"_",var,"_",data_name,out_prefix,".tif", sep="")) |
882 | 882 |
|
883 |
writeRaster(delta_rast_s, filename=raster_name_delta,overwrite=TRUE) #Writing the data in a raster file format...(IDRISI)
|
|
883 |
writeRaster(daily_delta_rast, filename=raster_name_delta,overwrite=TRUE) #Writing the data in a raster file format...(IDRISI)
|
|
884 | 884 |
#writeRaster(r_spat, NAflag=NA_flag_val,filename=raster_name,bylayer=TRUE,bandorder="BSQ",overwrite=TRUE) |
885 | 885 |
|
886 | 886 |
#raster_name_delta <- list_daily_delta_rast |
Also available in: Unified diff
debugging for raster prediction functions for run for multi timescale paper