Revision 83ead2bb
Added by Benoit Parmentier almost 12 years ago
climate/research/oregon/interpolation/master_script_temp.R | ||
---|---|---|
10 | 10 |
#STAGE 5: Output analyses-visualization of results for specific dates... |
11 | 11 |
# |
12 | 12 |
#AUTHOR: Benoit Parmentier |
13 |
#DATE: 03/14/2013
|
|
13 |
#DATE: 03/18/2013
|
|
14 | 14 |
|
15 | 15 |
#PROJECT: NCEAS INPLANT: Environment and Organisms --TASK#363, TASK$568-- |
16 | 16 |
|
... | ... | |
88 | 88 |
db.name <- "ghcn" # name of the Postgres database |
89 | 89 |
var <- "TMAX" # name of the variables to keep: TMIN, TMAX or PRCP |
90 | 90 |
range_years<-c("2000","2001") #right bound not included in the range!! |
91 |
range_years_clim<-c("2000","2011") #right bound not included in the range!!
|
|
91 |
range_years_clim<-c("1980","2011") #right bound not included in the range!!
|
|
92 | 92 |
infile1<- "outline_venezuela_region__VE_01292013.shp" #This is the shape file of outline of the study area #It is an input/output of the covariate script |
93 | 93 |
infile2<-"/home/layers/data/climate/ghcn/v2.92-upd-2012052822/ghcnd-stations.txt" #This is the textfile of station locations from GHCND |
94 | 94 |
infile_covariates<-"covariates__venezuela_region__VE_01292013.tif" #this is an output from covariate script and used in stage 3 and stage 4 |
95 | 95 |
CRS_locs_WGS84<-CRS("+proj=longlat +ellps=WGS84 +datum=WGS84 +towgs84=0,0,0") #Station coords WGS84: same as earlier |
96 | 96 |
in_path <- "/home/parmentier/Data/IPLANT_project/Venezuela_interpolation/Venezuela_01142013/input_data/" |
97 |
out_prefix<-"_365d_GAM_fus5_all_lstd_03142013" #User defined output prefix
|
|
97 |
out_prefix<-"_365d_GAM_fus5_all_lstd_03182013" #User defined output prefix
|
|
98 | 98 |
#qc_flags<- flags allowe for the query from the GHCND?? |
99 | 99 |
|
100 | 100 |
#The names of covariates can be changed...these names should be output/input from covar script!!! |
... | ... | |
174 | 174 |
"interpolation_method") |
175 | 175 |
|
176 | 176 |
#Source file |
177 |
source(file.path(script_path,"GAM_fusion_analysis_raster_prediction_multisampling_03132013.R"))
|
|
177 |
source(file.path(script_path,"GAM_fusion_analysis_raster_prediction_multisampling_03182013.R"))
|
|
178 | 178 |
|
179 | 179 |
#Make the function call |
180 | 180 |
raster_prediction_gam_fus_obj <-raster_prediction_gam_fusion(list_param_raster_prediction) |
Also available in: Unified diff
Master script run parameters for tmax year 2000 predictions using 1980-2010 monthly average