Skip to content

'krige' messages in loops

4 messages · Mauricio Zambrano-Bigiarini, Edzer Pebesma, James Nylen

#
Dear list,

I'm using the 'krige' function of the 'gstat' package for computing
inverse distance interpolated values within a loop.

So far everything works well, but I would like to know if there is any
way of suppressing the message "[inverse distance weighted
interpolation]" (very useful for single analysis) that appears at the
begining of every analysis ?. I'm asking this because this message
makes difficult to read in which part of the loop is being executed.

Thanks in advance,

Mauricio
#
Mauricio, please try something along the lines of

x = krige(log(zinc)~1, meuse, meuse.grid, set = list(debug = 0))
Mauricio Zambrano wrote:

  
    
#
Thanks a lot Edzer and James,

Adding 'set = list(debug = 0)' works perfectly. In my case:

'pp.idw <- krige(value~1, locations= loc, newdata= pp.gis.catch, set =
list(debug = 0) )'


Also thanks for the indication about the 'debug.level' parameter of
'krige' function, because I didn't associate the explanation:

'debug.level: debug level, passed to predict.gstat; use -1  to see
progress in percentage'

with presenting the method that is being used for interpolating the values.

Best regards,

Mauricio

2008/12/12 James Nylen <jnylen+rgeo at gmail.com>: