Displaying 1 result from an estimated 1 matches for "bf_200501".
2009 Jun 21
1
Problems with bilinear interpolation of a grid
...t my interpolation...
> library(fields)
> x.mat <- sprintf("%.2f", seq(from = -179.5, to = 179.5, length=360)) # longitude grid values
> y.mat <- sprintf("%.2f", seq(from = 89.5, to = -89.5, length=180)) # latitude grid values
> z.mat <- read.table("BF_200501.txt", colClasses="numeric") # dataset
> z.mat <- data.matrix(z.mat)
> obj <- list(x=x.mat, y=y.mat, z=z.mat)
#Setting up new grid
> a.mat <- sprintf("%.2f", seq(from = -179.75, to = 179.75, length = 720)) # longitude grid values
> b.mat <- sprintf...