The message seems to be clear in that either the directory or file is not where you think it is. Use 'choose.files()' to navigate to the file and see what it prints out as the location.
Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want to do it. On Mon, Jan 26, 2015 at 1:59 PM, John Wasige <johnwas...@gmail.com> wrote: > Dear all, > > i get the following error when reading *.nc4 data: > > Error in R_nc_open: No such file or directoryError in > open.ncdf("D:/Ag/rst_1980_prate.nc4") : > Error in open.ncdf trying to open file D:/Ag/rst_1980_prate.nc4 > > > library("ncdf") > prec <- open.ncdf("D:/Ag/rst_1980_prate.nc4") > lons <- get.var.ncdf(prec,"lon") > lats <- get.var.ncdf(prec,"lat") > time <- get.var.ncdf(prec,"time") > > What could be the problem > > thanks for your help > -- > John > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.