Project

General

Profile

« Previous | Next » 

Revision eec8b7e0

Added by Benoit Parmentier over 12 years ago

Kriging, slight modification and clean up, task #364

View differences:

climate/research/oregon/interpolation/kriging_reg.R
1 1
####################GWR of Tmax for one Date#####################
2 2
#This script generates predicted values from station values for the Oregon case study. This program loads the station data from a shp file 
3 3
#and performs Kriging and co-kriging on tmax regression.
4
#Script created by Benoit Parmentier on April 10, 2012. 
4
#Script created by Benoit Parmentier on April 17, 2012. 
5 5

  
6 6
###Loading r library and packages
7 7
library(sp)
......
16 16

  
17 17
path<- "/data/computer/parmentier/Data/IPLANT_project/data_Oregon_stations/"         #Path to all datasets
18 18
setwd(path)
19
infile1<-"ghcn_or_tmax_b_03032012_OR83M.shp" #Weather station location in Oregon with input variables
19
infile1<-"ghcn_or_tmax_b_04142012_OR83M.shp" #Weather station location in Oregon with input variables
20 20
infile2<-"dates_interpolation_03052012.txt"  # list of 10 dates for the regression, more thatn 10 dates may be used
21 21
infile3<-"mean_day244_rescaled.rst"          #This image serves as the reference grid for kriging
22 22
infile4<- "orcnty24_OR83M.shp"               #Vector file defining the study area: Oregon state and its counties.

Also available in: Unified diff