Revision 92a8fe9e
Added by Benoit Parmentier almost 10 years ago
climate/research/oregon/interpolation/global_run_scalingup_assessment_part1.R | ||
---|---|---|
5 | 5 |
#Part 1 create summary tables and inputs for figure in part 2 and part 3. |
6 | 6 |
#AUTHOR: Benoit Parmentier |
7 | 7 |
#CREATED ON: 03/23/2014 |
8 |
#MODIFIED ON: 11/13/2014
|
|
8 |
#MODIFIED ON: 11/30/2014
|
|
9 | 9 |
#Version: 3 |
10 | 10 |
#PROJECT: Environmental Layers project |
11 | 11 |
#TO DO: |
... | ... | |
457 | 457 |
#### Parameters and constants |
458 | 458 |
|
459 | 459 |
#in_dir1 <- "/nobackupp4/aguzman4/climateLayers/output1000x3000_km/" |
460 |
in_dir1 <- "/nobackupp6/aguzman4/climateLayers/output1000x3000_km/"
|
|
460 |
in_dir1 <- "/nobackupp6/aguzman4/climateLayers/output1500x4500_km/"
|
|
461 | 461 |
#/nobackupp4/aguzman4/climateLayers/output10Deg/reg1/finished.txt |
462 | 462 |
in_dir_list <- list.dirs(path=in_dir1,recursive=FALSE) #get the list regions processed for this run |
463 |
in_dir_list <- in_dir_list[c(3,4)] #get the list regions processed for this run |
|
463 |
#in_dir_list <- in_dir_list[c(3,4)] #get the list regions processed for this run
|
|
464 | 464 |
|
465 | 465 |
#if(basename(in_dir_list)[[1]]=="reg?") #add later |
466 | 466 |
in_dir_list_all <- lapply(in_dir_list,function(x){list.dirs(path=x,recursive=F)}) |
... | ... | |
498 | 498 |
# the last directory contains shapefiles |
499 | 499 |
y_var_name <- "dailyTmax" |
500 | 500 |
interpolation_method <- c("gam_CAI") |
501 |
out_prefix<-"run9_global_analyses_11122014"
|
|
501 |
out_prefix<-"run10_global_analyses_11302014"
|
|
502 | 502 |
|
503 | 503 |
#out_dir<-"/data/project/layers/commons/NEX_data/" #On NCEAS Atlas |
504 | 504 |
out_dir <- "/nobackup/bparmen1/" #on NEX |
... | ... | |
560 | 560 |
df_tile_processed$path_NEX <- in_dir_list |
561 | 561 |
|
562 | 562 |
##Quick exploration of raster object |
563 |
robj1 <- load_obj(list_raster_obj_files[[7]]) #This is an example tile
|
|
563 |
robj1 <- load_obj(list_raster_obj_files[[1]]) #This is an example tile
|
|
564 | 564 |
#robj1 <- load_obj(lf_raster_obj[4]) #This is tile tile |
565 | 565 |
|
566 | 566 |
names(robj1) |
... | ... | |
1010 | 1010 |
#for i in 1:length(df_tiled_processed$tile_coord) |
1011 | 1011 |
#output_atlas_dir <- "/data/project/layers/commons/NEX_data/output_run3_global_analyses_06192014/output10Deg/reg1" |
1012 | 1012 |
#output_atlas_dir <- "/data/project/layers/commons/NEX_data/output_run5_global_analyses_08252014/output20Deg" |
1013 |
output_atlas_dir <- "/data/project/layers/commons/NEX_data/output_run9_global_analyses_10292014"
|
|
1013 |
output_atlas_dir <- "/data/project/layers/commons/NEX_data/output_run10_global_analyses_11302014"
|
|
1014 | 1014 |
#Make directories on ATLAS |
1015 | 1015 |
#for (i in 1:length(df_tile_processed$tile_coord)){ |
1016 | 1016 |
# create_dir_fun(file.path(output_atlas_dir,as.character(df_tile_processed$tile_coord[i])),out_suffix=NULL) |
... | ... | |
1133 | 1133 |
system(cmd_str) |
1134 | 1134 |
} |
1135 | 1135 |
|
1136 |
|
|
1137 | 1136 |
##################### END OF SCRIPT ###################### |
Also available in: Unified diff
run 10 NEX assessment part 1, 1500x4500 tiles