Dear All, I'm running the latest R on SUSE 10.0. After read in a huge data CDF file I tried to process the only variable variable using the comands aek<-open.ncdf('C:/Monthly/CRU/Crutmp Europe.CDF') v1<-aek$var[[1]] gugus<-get.var.ncdf(aek, v1) But I can't because of this message Error: cannot allocate vector of size 1215000 Kb I'm now hoping for some help Any tips to get out of it? Thanks in advance. john
John Kapsomenakis wrote:> Dear All, > I'm running the latest R on SUSE 10.0. After read in a huge data CDF file > I tried to process the only variable variable using the comands > > aek<-open.ncdf('C:/Monthly/CRU/Crutmp Europe.CDF') > v1<-aek$var[[1]] > gugus<-get.var.ncdf(aek, v1) > > But I can't because of this message > Error: cannot allocate vector of size 1215000 Kb > > I'm now hoping for some help > Any tips to get out of it?No, unless you are moving into a huge 64-bit machine or using databases and working on subsets. R request 1.2Gb of RAM just for the very next step in get.var.ncdf()! You should probably reduce the data and work on subsets. Uwe Ligges> Thanks in advance. > john > > ______________________________________________ > 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 > and provide commented, minimal, self-contained, reproducible code.
The memory.size() command provides the maximum amount of memory that can be allocated. The amount can be increased to for example 2 GB by the command: memory.size(size = 2048) On windows the max size is 2GB, I don't know how large it is on Linux. But I must agree with Uwe Ligges that it may be better to cut up your dataset. kind regards, Paul Hiemstra At 10:59 18-10-2006, John Kapsomenakis wrote:>Dear All, >I'm running the latest R on SUSE 10.0. After read in a huge data CDF file >I tried to process the only variable variable using the comands > >aek<-open.ncdf('C:/Monthly/CRU/Crutmp Europe.CDF') >v1<-aek$var[[1]] >gugus<-get.var.ncdf(aek, v1) > >But I can't because of this message >Error: cannot allocate vector of size 1215000 Kb > >I'm now hoping for some help >Any tips to get out of it? > >Thanks in advance. >john > >______________________________________________ >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 >and provide commented, minimal, self-contained, reproducible code.