On Tue, Sep 16, 2014 at 11:36 AM, Hernan A. Moreno Ramirez <hmore...@uwyo.edu> wrote: > Sure, here it is. Thanks for any help with this Dr. Pierce: > > > ##### Exporting to NETCDF files > ################################################################# > # define the netcdf coordinate variables > library(ncdf)
... rest of example omitted ... Hi Hernan, The file you are trying to make is violating size constraints imposed by the netcdf library/R interface, which is 2 GB in the R ncdf package. To get around this switch to the R ncdf4 package, which is the replacement for the ncdf package (I stopped supporting the ncdf package in 2010) and set force_v4=TRUE in the nc_create() call. This requires a modern version of the netcdf library to be installed on your machine, which it probably is, since the netcdf version 4 library has been out for many years now. Regards, --Dave > http://www.public.asu.edu/~hamoreno/ > > ________________________________________ > From: davidwilliampie...@gmail.com <davidwilliampie...@gmail.com> on behalf > of David W. Pierce <dpie...@ucsd.edu> > Sent: Monday, September 15, 2014 7:00 PM > To: Hernan A. Moreno Ramirez > Cc: r-help@r-project.org > Subject: Re: [R] ncdf size error > > On Mon, Sep 15, 2014 at 4:20 PM, Hernan A. Moreno Ramirez > <hmore...@uwyo.edu> wrote: >> >> Hi I am using both ncdf and ncdf4 libraries and with both I keep getting the >> same error: Error in R_nc_enddef: NetCDF: One or more variable sizes violate >> format constraints. Error in R_nc_sync: NetCDF: Operation not allowed in >> define mode. This happens when I try to create.ncdf() a file with more than >> 13 variables. I think is a problem of memory size. What would you recommend? >> Any help will be appreciated > > Hi Hernan, > > can you supply an example that shows the problem? > > Regards, > > --Dave > > ------------------- > 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) dpie...@ucsd.edu -- 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) dpie...@ucsd.edu ______________________________________________ R-help@r-project.org mailing list 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.