[R] NetCDF, open *.nc
Roy.Mendelssohn at noaa.gov
Mon Jul 11 17:30:06 CEST 2011
did you check that the file was actually downloaded correctly and is a valid netcdf file? My guess. particularly on Windows, is that for the download.file statement you need to add that mode="wb" to the command.
On Jul 11, 2011, at 6:57 AM, kokavolchkov wrote:
> Well, if I use this script:
> link <-
> dest <- "C:/temp/slr_sla_gbl_free_all_66.nc"
> mode="wb": AFAIK
> nc1 <- open.ncdf(dest)
> compiler prints:
> Error in R_nc_open: Invalid argument
> Error in open.ncdf trying to open file C:/temp/slr_sla_gbl_free_all_66.nc
> [Package ncdf is installed correctly]
> View this message in context: http://r.789695.n4.nabble.com/NetCDF-open-nc-tp3659401p3659597.html
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
Supervisory Operations Research Analyst
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097
e-mail: Roy.Mendelssohn at noaa.gov (Note new e-mail address)
"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
More information about the R-help