Has anyone successfully used R to access netCDF files larger than 2Gb under Windows? With the version of the ncdf package that Brian Ripley provides for CRAN extras I get an assertion failure with a 12Gb file, but not a 1Gb subset of it. The same 12Gb file is ok with ncdf on Mac OS X (32bit R) and on Linux(64bit R). -thomas Thomas Lumley Assoc. Professor, Biostatistics tlumley at u.washington.edu University of Washington, Seattle
The netcdf code is rather silly: it uses 64-bit versions of seek etc when building a DLL, not on Windows. I can rebuild it using 64-bit seek, but could you please send me (privately) a test case? On Sat, 29 Dec 2007, Thomas Lumley wrote:> > Has anyone successfully used R to access netCDF files larger than 2Gb > under Windows? > > With the version of the ncdf package that Brian Ripley provides for CRAN > extras I get an assertion failure with a 12Gb file, but not a 1Gb subset > of it. The same 12Gb file is ok with ncdf on Mac OS X (32bit R) and on > Linux(64bit R). > > > -thomas > > Thomas Lumley Assoc. Professor, Biostatistics > tlumley at u.washington.edu University of Washington, Seattle > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
For the record: Thomas provided a test case and both ncdf and RNetCDF have been rebuilt with support for files > 2Gb. Updated versions are now on the CRANextras repository. On Sun, 30 Dec 2007, Prof Brian Ripley wrote:> The netcdf code is rather silly: it uses 64-bit versions of seek etc when > building a DLL, not on Windows. I can rebuild it using 64-bit seek, but > could you please send me (privately) a test case? > > On Sat, 29 Dec 2007, Thomas Lumley wrote: > >> Has anyone successfully used R to access netCDF files larger than 2Gb >> under Windows? >> >> With the version of the ncdf package that Brian Ripley provides for CRAN >> extras I get an assertion failure with a 12Gb file, but not a 1Gb subset >> of it. The same 12Gb file is ok with ncdf on Mac OS X (32bit R) and on >> Linux(64bit R).-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595