Revision e6262966
Added by Benoit Parmentier over 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: 07/09/2013
|
|
13 |
#DATE: 07/12/2013
|
|
14 | 14 |
|
15 | 15 |
#PROJECT: NCEAS INPLANT: Environment and Organisms --TASK#363, TASK$568-- |
16 | 16 |
|
... | ... | |
71 | 71 |
stages_to_run<-c(0,2,3,4,5) #May decide on antoher strategy later on... |
72 | 72 |
|
73 | 73 |
var<-"TMAX" # variable being interpolated |
74 |
out_prefix<-"_365d_gam_day_lst_comb3_07092013" #User defined output prefix
|
|
75 |
out_suffix<-"_OR_07092013"
|
|
74 |
out_prefix<-"_365d_gwr_day_lst_comb3_part1_07122013" #User defined output prefix
|
|
75 |
out_suffix<-"_OR_07122013"
|
|
76 | 76 |
out_suffix_modis <-"_05302013" #use tiles produce previously |
77 | 77 |
|
78 | 78 |
#interpolation_method<-c("gam_fusion","gam_CAI","gam_daily") #other otpions to be added later |
79 | 79 |
#interpolation_method<-c("gam_CAI") #other otpions to be added later |
80 | 80 |
#interpolation_method<-c("gam_fusion") #other otpions to be added later |
81 |
interpolation_method<-c("gam_daily") #other otpions to be added later |
|
81 |
#interpolation_method<-c("gam_daily") #other otpions to be added later
|
|
82 | 82 |
#interpolation_method<-c("kriging_daily") #other otpions to be added later |
83 |
#interpolation_method<-c("gwr_daily") #other otpions to be added later
|
|
83 |
interpolation_method<-c("gwr_daily") #other otpions to be added later |
|
84 | 84 |
|
85 | 85 |
#out_path <- paste("/home/parmentier/Data/IPLANT_project/Venezuela_interpolation/Venezuela_01142013/output_data", |
86 | 86 |
# out_prefix,"/",sep="") |
... | ... | |
239 | 239 |
#Models to run...this can be change for each run |
240 | 240 |
#LC1: Evergreen/deciduous needleleaf trees |
241 | 241 |
#Combination 3: for paper baseline=s(lat,lon)+s(elev) |
242 |
list_models<-c("y_var ~ s(lat,lon) + s(elev_s)", |
|
243 |
"y_var ~ s(lat,lon) + s(elev_s) + s(N_w)", |
|
244 |
"y_var ~ s(lat,lon) + s(elev_s) + s(E_w)", |
|
245 |
"y_var ~ s(lat,lon) + s(elev_s) + s(LST)", |
|
246 |
"y_var ~ s(lat,lon) + s(elev_s) + s(DISTOC)", |
|
247 |
"y_var ~ s(lat,lon) + s(elev_s) + s(LC1)", |
|
248 |
"y_var ~ s(lat,lon) + s(elev_s) + s(CANHGHT)", |
|
249 |
"y_var ~ s(lat,lon) + s(elev_s) + s(LST) + ti(LST,LC1)", |
|
250 |
"y_var ~ s(lat,lon) + s(elev_s) + s(LST) + ti(LST,CANHGHT)") |
|
242 |
#list_models<-c("y_var ~ s(lat,lon) + s(elev_s)",
|
|
243 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(N_w)",
|
|
244 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(E_w)",
|
|
245 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(LST)",
|
|
246 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(DISTOC)",
|
|
247 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(LC1)",
|
|
248 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(CANHGHT)",
|
|
249 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(LST) + ti(LST,LC1)",
|
|
250 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(LST) + ti(LST,CANHGHT)")
|
|
251 | 251 |
|
252 | 252 |
# list_models<-c("y_var ~ s(elev_s)", |
253 | 253 |
# "y_var ~ s(LST)", |
... | ... | |
259 | 259 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + ti(LC6,LST)", |
260 | 260 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + s(DISTOC)") |
261 | 261 |
|
262 |
#testing new combinations and tensor for paper |
|
263 |
# list_models<-c("y_var ~ s(x,y)", |
|
264 |
# "y_var ~ s(x)+ s(y) + s(LST) + ti(x,y) + ti(x,y,LST)", |
|
265 |
# "y_var ~ s(elev_s) + s(LST) + ti(elev_s,LST)", |
|
266 |
# "y_var ~ s(lat) + s(lon) + s(LST)", |
|
267 |
# "y_var ~ s(lat) + s(lon) + s(elev_s)+ ti(lat,lon) + ti(lat,lon,elev_s)", |
|
268 |
# "y_var ~ s(lat,lon) + s(LST)", |
|
269 |
# "y_var ~ s(lat,lon) + s(elev_s) + s(LST)", |
|
270 |
# "y_var ~ s(x) + s(y) + s(elev_s) + ti(x,y) + ti(x,y,elev_s)") |
|
271 |
|
|
262 |
#testing combination 3, part 1 for GWR day |
|
263 |
list_models<-c("y_var ~ lat*lon + elev_s", |
|
264 |
"y_var ~ lat*lon + elev_s + N_w", |
|
265 |
"y_var ~ lat*lon + elev_s + E_w") |
|
266 |
|
|
267 |
#list_models<-c("y_var ~ lat*lon + elev_s", |
|
268 |
# "y_var ~ lat*lon + elev_s + N_w", |
|
269 |
# "y_var ~ lat*lon + elev_s + E_w", |
|
270 |
# "y_var ~ lat*lon + elev_s + LST", |
|
271 |
# "y_var ~ lat*lon + elev_s + DISTOC", |
|
272 |
# "y_var ~ lat*lon + elev_s + LC1", |
|
273 |
# "y_var ~ lat*lon + elev_s + CANHGHT", |
|
274 |
# "y_var ~ lat*lon + elev_s + LST + I(LST*LC1)", |
|
275 |
# "y_var ~ lat*lon + elev_s + LST + I(LST*CANHGHT)") |
|
272 | 276 |
|
273 | 277 |
#list_models<-c("y_var~ lat + lon + elev_", |
274 | 278 |
# "y_var~ I(lat*lon) + elev_s", |
Also available in: Unified diff
gwr day predictions for paper, testing covariate combination 3, part 1