Project

General

Profile

« Previous | Next » 

Revision f431406b

Added by Benoit Parmentier about 9 years ago

assessment scaling up part1 reg5 1982 tmax

View differences:

climate/research/oregon/interpolation/global_run_scalingup_assessment_part1.R
5 5
#Part 1 create summary tables and inputs files for figure in part 2 and part 3.
6 6
#AUTHOR: Benoit Parmentier 
7 7
#CREATED ON: 03/23/2014  
8
#MODIFIED ON: 09/01/2015            
8
#MODIFIED ON: 09/15/2015            
9 9
#Version: 4
10 10
#PROJECT: Environmental Layers project  
11 11
#TO DO:
......
75 75
#in_dir1 <- "/nobackupp6/aguzman4/climateLayers/output1500x4500_km/" #PARAM1, add for now in_dir1 can be a list...
76 76
#in_dir1 <- "/nobackupp6/aguzman4/climateLayers/output1500x4500_km/elevTest/1kmBuff/"
77 77
in_dir1 <- "/nobackupp6/aguzman4/climateLayers/out_15x45/"
78
#/nobackupp6/aguzman4/climateLayers/out_15x45/1982
78 79

  
79 80
#region_names <- c("reg4") #selected region names, #PARAM2
80
region_names <- c("1992") #no specific region here so use date
81
region_names <- c("1982") #no specific region here so use date
81 82
#region_names <- c("reg1","reg2","reg3","reg4","reg5","reg6") #selected region names, #PARAM2
82 83
#region_namesb <- c("reg_1b","reg_1c","reg_2b","reg_3b","reg_6b") #selected region names, #PARAM2
83 84

  
84 85
y_var_name <- "dailyTmax" #PARAM3
85 86
interpolation_method <- c("gam_CAI") #PARAM4
86
out_prefix<-"run10_1500x4500_global_analyses_pred_1992_09012015" #PARAM5
87
out_prefix<-"run10_1500x4500_global_analyses_pred_1982_09152015" #PARAM5
87 88

  
88 89
#output_run10_1500x4500_global_analyses_pred_2003_04102015/
89 90

  
......
98 99
#day_to_mosaic <- c("20100101","20100901") #PARAM9
99 100
#day_to_mosaic <- c("20100829","20100830","20100831",
100 101
#                   "20100901","20100902","20100903")
102
day_to_mosaic <- c("19820101","19820102","19820103","19820104","19820105",
103
                   "19820106","19820107","19820108","19820109","19820110",
104
                   "19820111")
101 105

  
102 106
#day_to_mosaic <- NULL #if day to mosaic is null then mosaic all dates?
103 107

  
......
564 568

  
565 569
#recombine region first:
566 570
region_names_mosaic <- list(region_names)
567
names(region_names_mosaic) <- "reg4"
571
names(region_names_mosaic) <- "reg5"
568 572
in_dir_mosaics <- lapply(region_names_mosaic,FUN=function(x){file.path(in_dir1,x)})
569 573

  
570 574
for (j in 1:length(region_names_mosaic)){

Also available in: Unified diff