Revision d07e9853
Added by Benoit Parmentier almost 12 years ago
climate/research/oregon/interpolation/methods_comparison_assessment_part4.R | ||
---|---|---|
505 | 505 |
grid(lwd=0.5,col="black") |
506 | 506 |
title(paste("Testing stations LST vs TMax ",date_selected,sep=" ")) |
507 | 507 |
savePlot(paste("fig8_testing_TMax_fusion_",date_selected,out_prefix,".png", sep=""), type="png") |
508 |
|
|
509 |
##Elevation and residuals of temperature prediction |
|
510 |
diff_fc<-data_vf$pred_mod7-data_vc$pred_mod9 |
|
511 |
|
|
512 |
|
|
513 |
y_range<-range(c(diff_fc)) |
|
514 |
x_range<-range(c(data_vf$ELEV_SRTM,data_vc$ELEV_SRTM)) |
|
515 |
plot(data_vf$ELEV_SRTM,diff_fc, ylab="diff_fc", xlab="ELEV_SRTM (m) ", |
|
516 |
ylim=y_range, xlim=x_range) |
|
517 |
text(data_vf$ELEV_SRTM,diff_fc,labels=data_vf$idx,pos=3) |
|
518 |
grid(lwd=0.5,col="black") |
|
519 |
title(paste("Testing stations residuals fusion vs Elevation",date_selected,sep=" ")) |
|
520 |
|
|
521 |
brks<-c(0,500,1000,1500,2000,2500,4000) |
|
522 |
lab_brks<-1:6 |
|
523 |
elev_rcstat<-cut(data_vf$ELEV_SRTM,breaks=brks,labels=lab_brks,right=F) |
|
524 |
y_range<-range(c(diff_fc)) |
|
525 |
x_range<-range(c(elev_rcstat)) |
|
526 |
plot(elev_rcstat,diff_fc, ylab="diff_cf", xlab="ELEV_SRTM (m) ", |
|
527 |
ylim=y_range, xlim=x_range) |
|
528 |
text(elev_rcstat,diff_cf,labels=data_vf$idx,pos=3) |
|
529 |
grid(lwd=0.5,col="black") |
|
530 |
title(paste("Testing stations residuals fusion vs Elevation",date_selected,sep=" ")) |
|
531 |
|
|
532 |
# Combine both training and testing |
|
533 |
pred_fus<-c(data_vf$pred_mod7,data_sf$pred_mod7) |
|
534 |
pred_cai<-c(data_vc$pred_mod9,data_sc$pred_mod9) |
|
535 |
elev_station<-c(data_vf$ELEV_SRTM,data_sf$ELEV_SRTM) |
|
536 |
diff_fc<-pred_fus-pred_cai |
|
537 |
|
|
538 |
elev_rcstat<-cut(elev_station,breaks=brks,labels=lab_brks,right=F) |
|
539 |
y_range<-range(diff_fc) |
|
540 |
x_range<-range(elev_station) |
|
541 |
plot(elev_station,diff_fc, ylab="diff_fc", xlab="ELEV_SRTM (m) ", |
|
542 |
ylim=y_range, xlim=x_range) |
|
543 |
text(elev_rcstat,diff_fc,labels=data_vf$idx,pos=3) |
|
544 |
grid(lwd=0.5,col="black") |
|
545 |
title(paste("Testing stations residuals fusion vs Elevation",date_selected,sep=" ")) |
|
546 |
|
|
547 |
#USING BOTH validation and training |
|
548 |
|
|
508 | 549 |
dev.off() |
509 | 550 |
} |
510 | 551 |
|
... | ... | |
663 | 704 |
text(loadings$PC1,loadings$PC2,rownames(loadings), adj = c(0,0),offset=2, col="red",cex=1.2) |
664 | 705 |
draw.circle(0,0,radius=1) |
665 | 706 |
|
666 |
|
|
707 |
#DO PCA ON SELECTED DATE... |
|
667 | 708 |
|
Also available in: Unified diff
Methods comp part4-task#491- residuals analyses update plot res per elevation classes