<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><P style="MARGIN: 0px">Hi,</P><P style="MARGIN: 0px"> </P><P style="MARGIN: 0px">First, thanks for all help so far...but I still have some problems.<BR>Here is the code:<BR>cumark <- read.table("k:/test/helamarkcu.txt", header=T, sep = ";")</P><P style="MARGIN: 0px">memory.limit(size = 1897) <BR>attach(cumark)<BR>vew <- as.vector(ew)<BR>vns <- as.vector(ns)<BR>vcu <- as.vector(cu)</P><P style="MARGIN: 0px">fcumark <- data.frame(vew, vns, vcu)</P><P style="MARGIN: 0px">coordinates(fcumark) <- ~vew+vns </P><P style="MARGIN: 0px">L1 <-round((max(vew)- min(vew))/100,0)<BR>L2 <-round((max(vns)- min(vns))/100,0)</P><P style="MARGIN: 0px"><BR>fcumark.interp.old <- interp.old(vew, vns, vcu,<BR> xo= seq(min(vew), max(vew), length = L1),<BR> yo= seq(min(vns), max(vns), length = L2),<BR> ncp = 0, <BR> extrap= FALSE,<BR> duplicate = "mean",<BR> dupfun = NULL)<BR>Then I get this;<BR>Error: cannot allocate vector of size 351.8 Mb</P><P style="MARGIN: 0px">When I tested with a smaller file (~2000 rows) I come to the end without problems.</P><P style="MARGIN: 0px">Rest of the code..</P><P style="MARGIN: 0px">fcumark.interp.old.grid <- as.SpatialGridDataFrame.im(as.im(fcumark.interp.old))</P><P style="MARGIN: 0px">## spplot(fcumark.interp.old.grid, col.regions=bpy.colors(), sp.layout=list("sp.points", pch="+", fcumark))</P><P style="MARGIN: 0px">slot(slot(fcumark.interp.old.grid, "grid"), "cellsize") <- rep(mean(slot(slot(fcumark.interp.old.grid,<BR> "grid"), "cellsize")), 2)</P><P style="MARGIN: 0px">write.asciigrid(fcumark.interp.old.grid[1], "k:/test/helamarkcu.asc", na.value = -9999)<BR>## End run</P><P style="MARGIN: 0px">helamarkcu.txt is a plain ascii file, looks like...<BR>ew;ns;cu<BR>1344628;6138662;24.0<BR>1340104;6138880;17.0<BR>1342246;6138946;21.0<BR>1347259;6140911;19.0<BR>1339968;6140932;15.0<BR>1349906;6140987;21.0<BR>...<BR>..<BR>.<BR>(38155 rows)<BR>Have anybody a solution? Writing result from interp.old direct to disk/file on the "fly"?</P><P style="MARGIN: 0px">Running R 2.7.2 and WinXP</P><P style="MARGIN: 0px">Regards,<BR>Mikael</P></FONT>