Project

General

Profile

« Previous | Next » 

Revision dca3f579

Added by Benoit Parmentier about 10 years ago

revisions2 multitime scale paper, further modifications before submission

View differences:

climate/research/oregon/interpolation/multi_timescale_paper_interpolation.R
7 7
#Analyses, figures, tables and data for the  paper are also produced in the script.
8 8
#AUTHOR: Benoit Parmentier 
9 9
#CREATED ON: 10/31/2013  
10
#MODIFIED ON: 10/06/2014            
10
#MODIFIED ON: 10/23/2014            
11 11
#Version: 6
12 12
#PROJECT: Environmental Layers project                                     
13 13
#################################################################################################
......
434 434
                              par.main.text=list(font=2,cex=2),strip.background=list(col="white")),par.strip.text=list(font=2,cex=1.5),
435 435
          #strip=strip.custom(factor.levels=names_layers),
436 436
          xlab=list(label="Month", cex=2,font=2),
437
          ylab=list(label="difference to mod3", cex=2, font=2),
437
          ylab=list(label="\u0394RMSE from model with elevation", cex=2, font=2),
438 438
          auto.key=list(columns=2,space="top",cex=2.5,font=2),
439 439
          
440 440
          #list(label="\u0394RMSE between mod1 and mod4",cex=1.5)
......
772 772
p1 <- list_plots_spt[[1]]
773 773
p2 <- list_plots_spt[[2]]
774 774
#p3 <- list_plots_spt[[3]]
775

  
775
#Modify title here...
776
p1$main <- "(a) gam_daily temperature (°C)"
777
p2$main <- "(b) gam_CAI temperature (°C)"
776 778
#grid.arrange(p1,p2,p3,ncol=1)
777 779
grid.arrange(p1,p2,ncol=1)
778 780

  
......
780 782

  
781 783
################################################
782 784
#### Figure 5: Spatial lag profiles  
783
#This figure is generated to show the spatial Moran'I for 10 spatial 
785
#This figure is generated to show the spatial Moran'I for spatial 
784 786
#for Jan 1 and Sept 1 in 2010 for all models (1 to 7) and methods
785 787

  
786 788
index <- 1 #index corresponding to Jan 1 #For now create Moran's I for only one date...
......
866 868

  
867 869
nb_lag <- 10
868 870
list_filters<-lapply(1:nb_lag,FUN=autocor_filter_fun,f_type="queen") #generate lag 10 filters
869
list_param_stat_moran_CAI <- list(filter=list_filters[[10]],lf_list=list_lf_gam_CAI)
871
list_param_stat_moran_CAI <- list(filter=list_filters[[10]],lf_list=list_lf_gam_CAI) #select only lag 10
870 872
list_param_stat_moran_gam_daily <- list(filter=list_filters[[10]],lf_list=list_lf_gam_daily)
871 873
#tt <- stat_moran_std_raster_fun(1,list_param=list_param_stat_moran)
872 874
#tt <- mclapply(1:11, list_param=list_param_stat_moran_CAI, FUN=stat_moran_std_raster_fun,mc.preschedule=FALSE,mc.cores = 11) #This is the end bracket from mclapply(...) statement
......
1227 1229
png(filename=paste("Figure_annex1_paper_Comparison_daily_monthly_mean_lst",out_prefix,".png",sep=""),width=960,height=480)
1228 1230
par(mfrow=c(1,2))
1229 1231
plot(lst_md)
1230
plot(interp_area_WGS84,add=TRUE)
1232
plot(interp_area_WGS84,ylab="Latitude (degree)",xlab="Longitude (degree)",add=TRUE)
1231 1233
title("Mean temperature (°C) for January 1")
1232 1234
plot(lst_mm_01)
1233
plot(interp_area_WGS84,add=TRUE)
1235
plot(interp_area_WGS84,ylab="Latitude (degree)",xlab="Longitude (degree)",add=TRUE)
1234 1236
title("Mean temperature (°C) for month of January")
1235 1237
dev.off()
1236 1238

  

Also available in: Unified diff