കുഞ്ഞായി kunjaai
2015-Jan-12 18:32 UTC
[R] Showing error when trying to open a netcdf file using 'ncdf' package in R
Dear all,
I am tried to open an netcdf file in R,
*>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*
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
David W. Pierce
2015-Jan-12 20:47 UTC
[R] Showing error when trying to open a netcdf file using 'ncdf' package in R
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
കുഞ്ഞായി kunjaai
2015-Jan-13 07:47 UTC
[R] Showing error when trying to open a netcdf file using 'ncdf' package in R
On Tue, Jan 13, 2015 at 2:17 AM, David W. Pierce <dpierce at ucsd.edu> wrote:> 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. >Problem solved, after update of 'ncdf-1.8.6' ! Thank you for your help.> > 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 >-- DILEEPKUMAR. R J R F, IIT DELHI [[alternative HTML version deleted]]