Revision a615132d
Added by Benoit Parmentier over 9 years ago
climate/research/oregon/interpolation/global_run_scalingup_mosaicing.R | ||
---|---|---|
5 | 5 |
#Analyses, figures, tables and data are also produced in the script. |
6 | 6 |
#AUTHOR: Benoit Parmentier |
7 | 7 |
#CREATED ON: 04/14/2015 |
8 |
#MODIFIED ON: 06/22/2015
|
|
8 |
#MODIFIED ON: 06/26/2015
|
|
9 | 9 |
#Version: 5 |
10 | 10 |
#PROJECT: Environmental Layers project |
11 | 11 |
#COMMENTS: analyses run for reg5 for test of mosaicing using 1500x4500km and other tiles |
... | ... | |
56 | 56 |
|
57 | 57 |
#Data is on ATLAS: reg4 (South America) |
58 | 58 |
|
59 |
in_dir <- "/data/project/layers/commons/NEX_data/mosaicing_data_test" |
|
59 |
in_dir <- "/data/project/layers/commons/NEX_data/mosaicing_data_test" #PARAM1
|
|
60 | 60 |
#in_dir <- "/data/project/layers/commons/NEX_data/mosaicing_data_test/reg1" #North America |
61 | 61 |
#in_dir <- "/data/project/layers/commons/NEX_data/mosaicing_data_test/reg2" #Europe |
62 | 62 |
#in_dir <- "/data/project/layers/commons/NEX_data/mosaicing_data_test/reg4" #South America |
63 | 63 |
#in_dir <- "/data/project/layers/commons/NEX_data/mosaicing_data_test/reg5" #Africa |
64 | 64 |
|
65 |
y_var_name <- "dailyTmax" #PARAM1
|
|
66 |
interpolation_method <- c("gam_CAI") #PARAM2
|
|
67 |
region_name <- "reg6" #PARAM 13 #reg4 South America, Africa reg5,Europe reg2, North America reg1, Asia reg3
|
|
68 |
mosaicing_method <- c("unweighted","use_edge_weights") |
|
69 |
out_suffix <- paste(region_name,"_","mosaic_run10_1500x4500_global_analyses_06212015",sep="")
|
|
65 |
y_var_name <- "dailyTmax" #PARAM2
|
|
66 |
interpolation_method <- c("gam_CAI") #PARAM3
|
|
67 |
region_name <- "reg5" #PARAM 4 #reg4 South America, Africa reg5,Europe reg2, North America reg1, Asia reg3
|
|
68 |
mosaicing_method <- c("unweighted","use_edge_weights") #PARAM5
|
|
69 |
out_suffix <- paste(region_name,"_","mosaic_run10_1500x4500_global_analyses_06262015",sep="") #PARAM 6
|
|
70 | 70 |
#PARAM3 |
71 |
out_dir <- in_dir #PARAM4
|
|
72 |
create_out_dir_param <- TRUE #PARAM 5
|
|
71 |
out_dir <- in_dir #PARAM 7
|
|
72 |
create_out_dir_param <- TRUE #PARAM 8
|
|
73 | 73 |
|
74 | 74 |
#if daily mosaics NULL then mosaicas all days of the year |
75 | 75 |
day_to_mosaic <- c("20100831", |
76 |
"20100901") #PARAM7
|
|
76 |
"20100901") #PARAM 9
|
|
77 | 77 |
|
78 |
file_format <- ".tif" #PARAM 9
|
|
79 |
NA_value <- -9999 #PARAM10
|
|
78 |
file_format <- ".tif" #PARAM 10
|
|
79 |
NA_value <- -9999 #PARAM 11
|
|
80 | 80 |
NA_flag_val <- NA_value |
81 | 81 |
|
82 |
num_cores <- 11
|
|
82 |
num_cores <- 11 #PARAM 12
|
|
83 | 83 |
|
84 | 84 |
########################## START SCRIPT ############################## |
85 | 85 |
|
Also available in: Unified diff
global mosaicing reg 5 for two methods