Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to do a groundwater elevation map with an Ordinary Kriging on R, but always resulting on the lack of memory

cannot allocate vector of size 146.5 Mb

allocation (windows xp 32bit). Should I increase memory size and how, or should I reduce the grid size and how (kind of a newbie in R)?

following this example http://casoilresource.lawr.ucdavis.edu/drupal/node/438

share|improve this question
    
what is your desired grid size? (how many rows/columns?) –  Mike T Mar 28 '11 at 18:23
    
Did you already have a look at the R FAQ. –  rengis Mar 28 '11 at 18:36
    
The grid size is 3202*2993. And I was doing the OK on a grd of 1's (I think!!) like the link but it always gaved that error. Then I changed 1 by 100 but it gaved the same error. –  Ulmi Mar 28 '11 at 20:00
2  
Consider migrating this question to SO: there are a lot of R experts there. –  whuber Mar 28 '11 at 22:10
    
Something similar was discussed here: r.789695.n4.nabble.com/… –  markusN Mar 28 '11 at 22:52
show 6 more comments

1 Answer 1

You do not provide us with the size of the data you want to krige, nor the size of the support on which you want to do that kriging, but I assume this would be pretty big.

The problem with R is that is loads everything into memory. In that case, you are simply running out of RAM.

Kriging is a very demanding process. The way you can manage that is to parrallelize it. See demo(snow) in the gstat package.

Alternatively, you can also use another interpolation method, more suitable to big data (eg the v.surf.* functions in GRASS).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.