Skip to content
Prev 3224 / 29559 Next

memory - cannot allocate vector of size 'x'

On Tue, 4 Mar 2008, Jose Funes wrote:

            
But no use of maxdist= or nmax=? I would have said:

g1 <- gstat(formula=yststep$call$formula, data=ystdec3, model=vgf1yst)
ystrk <- predict(g1, newdata=predictors)

anyway, which shows exactly how to resolve the problem - subset ystdec3 
into tiles and patch them together again afterwards (patching may need 
thinking through clearly). I assume that you have now successfully read in 
the predictors? Do I understand that you are calibrating your model on 163 
observations, and predicting for roughly four orders of magnitude more 
grid cells?

gc() can help to clean out garbage sometimes - say in a loop, gctorture() 
really only during development, not in regular use.

Roger