[R] Showing error when trying to open a netcdf file using 'ncdf' package in R

David W. Pierce dpierce at ucsd.edu
Mon Jan 12 21:47:30 CET 2015


Hi,

> *>library(ncdf)*
>
> *>f<-open.ncdf('Acc.nc')*
>
> *Error in R_nc_inq_dim: NetCDF: Invalid dimension ID or nameError in
> dim.inq.ncdf(nc, i) : using ncid  65536  dimid  1*

I've fixed this error, and put a new source package (version 1.8.6) up
on ncdf's home page at:

http://cirrus.ucsd.edu/~pierce/ncdf/

Turns out the error was being caused by having a file with no
dimensions in it whatsoever.

Regards,

--Dave

>
> But I can open this same nc file using other software tool like UVCDAT.
>
> I have attached that nc file along with this mail,.
>
> Thank you all in advance.
> --
> DILEEPKUMAR. R
> J R F, IIT DELHI
> ______________________________________________
> R-help at 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.



-- 
David W. Pierce
Division of Climate, Atmospheric Science, and Physical Oceanography
Scripps Institution of Oceanography, La Jolla, California, USA
(858) 534-8276 (voice)  /  (858) 534-8561 (fax)    dpierce at ucsd.edu



More information about the R-help mailing list