search for: pptpred

Displaying 1 result from an estimated 1 matches for "pptpred".

2011 Apr 12
1
How to set the dimension of a matrix correctly?
...R/Code/ppt_15day.dat')) xx <- dim(ppt) # (77,528) plat <- seq(37.5,42,by=0.07273)plon <- seq(-105.5,-93.5,by=0.07273)pgrid <- expand.grid(x=plon,y=plat)pdim <- dim(pgrid) # (10230,2) #plot(pgrid, cex=0.5) lat <- coords[,1] lon <- coords[,2] ppt1 <- ppt[,1:xx[2]] # 1:528 pptpred <- matrix(0,ncol=xx[2],nrow=1) ############# Only test one period data################## ptemp <- ppt1[,3] ll <- which(ptemp>0) ppt2 <- matrix(0,nrow=length(ll),ncol=3) # (lon,lat,ptemp) ppt2[,1] <- lat[ll] # y-axis ppt2[,2] <- lon[ll] # x-axis ppt2[,3] <- ptemp[...