Dear all I use the library(netCDF) to read in NCEP data. The file I want to read has size 113 Mb. When i try to read it I get the following message: Error: cannot allocate vector of size 221080 Kb In addition: Warning message: Reached total allocation of 255Mb: see help(memory.size) I get a similar message when I try to read a file with 256 Mb in a PC with 2 GigaByte RAM. Is there something that I can do to handle this problem of reading big netCDF files with R-project. I look forward for your help. Prodromos Zanis **************************************************** Dr. Prodromos Zanis Research Centre for Atmospheric Physics and Climatology Academy of Athens 3rd September 131, Athens 11251, Greece Tel. +30 210 8832048 Fax: +30 210 8832048 e-mail: pzanis@geol.uoa.gr Web address: http://users.auth.gr/~zanis/ ***************************************************** [[alternative HTML version deleted]]
"Prodromos Zanis" <pzanis at geol.uoa.gr> writes:> Dear all > > I use the library(netCDF) to read in NCEP data. The file I want to > read has size 113 Mb. When i try to read it I get the following > message: > > Error: cannot allocate vector of size 221080 Kb > In addition: Warning message: > Reached total allocation of 255Mb: see help(memory.size) > > I get a similar message when I try to read a file with 256 Mb in a > PC with 2 GigaByte RAM. > > Is there something that I can do to handle this problem of reading > big netCDF files with R-project.Did you read help(memory.size)? and follow instructions therein? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Prodromos Zanis wrote:> Dear all > > I use the library(netCDF) to read in NCEP data. The file I want to read has size 113 Mb. > When i try to read it I get the following message: > > Error: cannot allocate vector of size 221080 Kb > In addition: Warning message: > Reached total allocation of 255Mb: see help(memory.size)So this is an R version < 1.9.0 ! 1. Please upgrade. 2. Please read ?Memory and learn how to increase the maximum amount of memory consumed by R under Windows. Uwe Ligges> I get a similar message when I try to read a file with 256 Mb in a PC with 2 GigaByte RAM. > > Is there something that I can do to handle this problem of reading big netCDF files with R-project. > > I look forward for your help. > > Prodromos Zanis > > > **************************************************** > Dr. Prodromos Zanis > Research Centre for Atmospheric Physics and Climatology > Academy of Athens > 3rd September 131, Athens 11251, Greece > Tel. +30 210 8832048 > Fax: +30 210 8832048 > e-mail: pzanis at geol.uoa.gr > Web address: http://users.auth.gr/~zanis/ > ***************************************************** > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On 14 Sep 2004, Peter Dalgaard wrote:> "Prodromos Zanis" <pzanis at geol.uoa.gr> writes: > > > Dear all > > > > I use the library(netCDF) to read in NCEP data. The file I want to > > read has size 113 Mb. When i try to read it I get the following > > message: > > > > Error: cannot allocate vector of size 221080 Kb > > In addition: Warning message: > > Reached total allocation of 255Mb: see help(memory.size) > > > > I get a similar message when I try to read a file with 256 Mb in a > > PC with 2 GigaByte RAM. > > > > Is there something that I can do to handle this problem of reading > > big netCDF files with R-project. > > Did you read help(memory.size)? and follow instructions therein?Also, netCDF has been withdrawn from CRAN, and you might want to use ncdf or RNetCDF instead. (Windows ports of both are available now: see the ReadMe on the CRAN windows contrib area.) If the message really was similar you are using R < 1.6.0 and need to upgrade. -- 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