How to change the resolution (or regrid) data in R
问题 I have a dataset consisting of lon, lat and a monthly mean variable (e.g. temperature or precipitation) covering 1961 to 1970. The dataset is at a resolution of 0.5 by 0.5 degree lon/lat and covers the whole globe and was downloaded as an .NC file which I have extracted the data in R by using: library(ncdf) f <- open.ncdf("D:/CRU/cru_ts3.21.1961.1970.tmp.dat.nc") A <- get.var.ncdf(nc=f,varid="tmp") B <- get.var.ncdf(nc=f,varid="lon") C <- get.var.ncdf(nc=f,varid="lat") D <- cbind(expand.grid