Revision f02bf654
Added by Benoit Parmentier about 11 years ago
climate/research/oregon/interpolation/master_script_temp.R | ||
---|---|---|
10 | 10 |
#STAGE 5: Output analyses: assessment of results for specific dates... |
11 | 11 |
# |
12 | 12 |
#AUTHOR: Benoit Parmentier |
13 |
#DATE: 08/30/2013
|
|
13 |
#DATE: 08/31/2013
|
|
14 | 14 |
|
15 | 15 |
#PROJECT: NCEAS INPLANT: Environment and Organisms --TASK#363, TASK$568-- |
16 | 16 |
|
... | ... | |
58 | 58 |
#source(file.path(script_path,"download_and_produce_MODIS_LST_climatology_06112013.R")) |
59 | 59 |
source(file.path(script_path,"covariates_production_temperatures_08052013.R")) |
60 | 60 |
source(file.path(script_path,"Database_stations_covariates_processing_function_06112013.R")) |
61 |
source(file.path(script_path,"GAM_fusion_analysis_raster_prediction_multisampling_08252013.R"))
|
|
61 |
source(file.path(script_path,"GAM_fusion_analysis_raster_prediction_multisampling_08302013.R"))
|
|
62 | 62 |
source(file.path(script_path,"results_interpolation_date_output_analyses_08052013.R")) |
63 | 63 |
#source(file.path(script_path,"results_covariates_database_stations_output_analyses_04012013.R")) #to be completed |
64 | 64 |
|
65 | 65 |
#FUNCTIONS CALLED FROM GAM ANALYSIS RASTER PREDICTION ARE FOUND IN... |
66 | 66 |
|
67 | 67 |
source(file.path(script_path,"sampling_script_functions_08252013.R")) |
68 |
source(file.path(script_path,"GAM_fusion_function_multisampling_08252013.R")) #Include GAM_CAI
|
|
68 |
source(file.path(script_path,"GAM_fusion_function_multisampling_08302013.R")) #Include GAM_CAI
|
|
69 | 69 |
source(file.path(script_path,"interpolation_method_day_function_multisampling_07052013.R")) #Include GAM_day |
70 |
source(file.path(script_path,"GAM_fusion_function_multisampling_validation_metrics_08062013.R"))
|
|
70 |
source(file.path(script_path,"GAM_fusion_function_multisampling_validation_metrics_09012013.R"))
|
|
71 | 71 |
|
72 | 72 |
#stages_to_run<-c(1,2,3,4,5) #May decide on antoher strategy later on... |
73 | 73 |
#stages_to_run<-c(0,2,3,4,5) #May decide on antoher strategy later on... |
... | ... | |
80 | 80 |
#met_stations_outfiles_obj_file<-"met_stations_outfiles_obj_gam_CAI__365d_gam_CAI_lst_comb3_08252013.RData" |
81 | 81 |
|
82 | 82 |
var<-"TMAX" # variable being interpolated |
83 |
out_prefix<-"_365d_gam_CAI_lst_comb3_08302013" #User defined output prefix
|
|
84 |
out_suffix<-"_OR_08302013" #Regional suffix
|
|
83 |
out_prefix<-"_365d_gam_CAI_lst_comb3_08312013" #User defined output prefix
|
|
84 |
out_suffix<-"_OR_08312013" #Regional suffix
|
|
85 | 85 |
out_suffix_modis <-"_05302013" #pattern to find tiles produced previously |
86 | 86 |
|
87 | 87 |
#interpolation_method<-c("gam_fusion","gam_CAI","gam_daily") #other otpions to be added later |
... | ... | |
253 | 253 |
nb_sample_month <-1 #number of time random sampling must be repeated for every hold out proportion |
254 | 254 |
step_month <-0.1 |
255 | 255 |
constant_month <-0 #if value 1 then use the same samples as date one for the all set of dates |
256 |
prop_minmax_month <-c(0.2,0.3) #if prop_min=prop_max and step=0 then predictions are done for the number of dates...
|
|
256 |
prop_minmax_month <-c(0,0.1) #if prop_min=prop_max and step=0 then predictions are done for the number of dates...
|
|
257 | 257 |
|
258 | 258 |
#dates_selected<-c("20100101","20100102","20100103","20100901") # Note that the dates set must have a specific format: yyymmdd |
259 | 259 |
#dates_selected<-c("20100101","20100102","20100301","20100302","20100501","20100502","20100701","20100702","20100901","20100902","20101101","20101102") |
Also available in: Unified diff
master script test modifications with range of monthly hold out with zero