search for: lonmat

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

Did you mean: lonlat
2008 Jul 09
1
netCDF to TIFF
...----------------------------------------------- # Set working directory and load library setwd('C:/Users/steinber/Documents/DATA/ENSEMBLES/') library(ncdf) library(rgdal) library(chron) library(fields) # Read netCDF file tg.ncdf = open.ncdf('tg_0.25deg_CRU_version1.0.nc') tg.ncdf lonmat = get.var.ncdf(nc=tg.ncdf,varid="longitude") # reads entire matrix latmat = get.var.ncdf(nc=tg.ncdf,varid="latitude") # ditto timearr = get.var.ncdf(nc=tg.ncdf,varid="time") # reads entire time array targettime = julian(x=1, d=1, y=2002, origin=c(month...