Re: [R] Converting ncdf to geoTIFF

2015-01-07 Thread Michael Sumner
raster() wants the filename, not a NetCDF connection. (raster is one of *very* few high-level interfaces to NetCDF, so it's somewhat unfamiliar to the norm) Cheers, Mike [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Converting ncdf to geoTIFF

2015-01-07 Thread John Wasige
Dear all, This is to request for help on how to convert ncdf data to geoTIFF in R with my script below; my script is: library(raster) library(ncdf) setwd('D:/Lund2015/CRU1982_2011') prec1 <- open.ncdf('D:/Lund2015/CRU1982_2011/ b8_cruts3.20_pre_19820101_20111231_1month_mean.nc') print(prec1) ras