Project

General

Profile

« Previous | Next » 

Revision 72128874

Added by Benoit Parmentier about 10 years ago

scaling up NEX assessement part2, Asia adding number of daily predictions

View differences:

climate/research/oregon/interpolation/global_run_scalingup_assessment_part2.R
5 5
#Analyses, figures, tables and data are also produced in the script.
6 6
#AUTHOR: Benoit Parmentier 
7 7
#CREATED ON: 03/23/2014  
8
#MODIFIED ON: 10/05/2014            
8
#MODIFIED ON: 10/21/2014            
9 9
#Version: 3
10 10
#PROJECT: Environmental Layers project     
11 11
#COMMENTS: analyses for run 5 global using 6 specific tiles
......
212 212
#on ATLAS
213 213
#in_dir1 <- "/data/project/layers/commons/NEX_data/test_run1_03232014/output" #On Atlas
214 214
#parent output dir : contains subset of the data produced on NEX
215
in_dir1 <- "/data/project/layers/commons/NEX_data/output_run6_global_analyses_09162014/output20Deg2"
215
#in_dir1 <- "/data/project/layers/commons/NEX_data/output_run6_global_analyses_09162014/output20Deg2"
216 216
# parent output dir for the curent script analyes
217 217
#out_dir <-"/data/project/layers/commons/NEX_data/output_run3_global_analyses_06192014/" #On NCEAS Atlas
218
out_dir <-"/data/project/layers/commons/NEX_data/output_run7_global_analyses_10042014/"
218
out_dir <-"/data/project/layers/commons/NEX_data/output_run8_global_analyses_10212014/"
219 219
# input dir containing shapefiles defining tiles
220 220
#in_dir_shp <- "/data/project/layers/commons/NEX_data/output_run5_global_analyses_08252014/output/subset/shapefiles"
221 221

  
......
228 228

  
229 229
y_var_name <- "dailyTmax"
230 230
interpolation_method <- c("gam_CAI")
231
out_prefix<-"run7_global_analyses_10042014"
231
out_prefix<-"run8_global_analyses_10212014"
232 232
mosaic_plot <- FALSE
233 233

  
234 234
proj_str<- CRS_WGS84
......
642 642
                                           pred_mod!="mod_kr"),type="h")
643 643
dev.off()
644 644

  
645
table(tb$pred_mod)
646
table(tb$index_d)
647
table(subset(tb,pred_mod!="mod_kr"))
648
table(subset(tb,pred_mod=="mod1")$index_d)
649
aggregate()
650
tb$predicted <- 1
651
test <- aggregate(predicted~pred_mod+tile_id,data=tb,sum)
652
xyplot(predicted~pred_mod | tile_id,data=subset(as.data.frame(test),
653
                                           pred_mod!="mod_kr"),type="h")
654

  
655
test
656
LST_avgm_min <- aggregate(LST~month,data=data_month_all,min)
657
histogram(test$predicted~test$tile_id)
658
table(tb)
645 659
## Figure 7b
646 660
#png(filename=paste("Figure7b_number_daily_predictions_per_models","_",out_prefix,".png",sep=""),
647 661
#    width=col_mfrow*res_pix,height=row_mfrow*res_pix)

Also available in: Unified diff