A statistical interpolation method, also known as Gaussian process regression, most used in geo-statistics. The goal is to map a surface given limited sample data. The process evaluates the variability of supplied data, then uses a weighted average of neighbouring points -- considering both distance and direction -- to interpolate the desired map points.
Questions tagged [kriging]
148 questions
26
votes
1 answer
Interpolation over regular grid in Python
I have been struggling to inteprolate the data for "empty" pixels in my 2D matrix. Basically, I understand (but not deeply) interpolation techniques such as Inverse Distance Weighting, Kriging, Bicubic etc. I dont know the starting point exactly…
![](../../users/profiles/2258981.webp)
Spider
- 826
- 3
- 14
- 34
12
votes
1 answer
How to overlap kriging spatial prediction map on a particular area of a country map in R?
I have a hourly PM10 dataset for 81 observation named "seoul032823". You can download from Here. I have performed ordinary kriging on this dataset and also got spatial map for kriging prediction. I also can show the observation data points on…
![](../../users/profiles/5067967.webp)
Orpheus
- 309
- 5
- 21
9
votes
2 answers
How can I interpolate station data with Kriging in Python?
Browsing the web I've found that some tools to use Kriging in Python are pyKriging and Gaussian Process Regression. However, I couldn't make any of them to work. The first one doesn't work for me (can't even import it):
import pyKriging
File…
![](../../users/profiles/7032387.webp)
lanadaquenada
- 366
- 2
- 4
- 18
9
votes
3 answers
Create Grid in R for kriging in gstat
lat long
7.16 124.21
8.6 123.35
8.43 124.28
8.15 125.08
Consider these coordinates, these coordinates correspond to weather stations that measure rainfall data.
The intro to the gstat package in R uses the meuse dataset. At some point…
![](../../users/profiles/6160962.webp)
ace_01S
- 327
- 2
- 5
- 12
8
votes
2 answers
Python - Kriging (Gaussian Process) in scikit_learn
I am considering using this method to interpolate some 3D points I have. As an input I have atmospheric concentrations of a gas at various elevations over an area. The data I have appears as values every few feet of vertical elevation for several…
![](../../users/profiles/4945934.webp)
Cliff S
- 81
- 1
- 2
7
votes
1 answer
Regression kriging of binomial data
I use gstat to predict a binomial data, but the predicted values go above 1 and below 0. Does anyone know how I can deal with this issue? Thanks.
data(meuse)
data(meuse.grid)
coordinates(meuse) <- ~x+y
coordinates(meuse.grid) <-…
![](../../users/profiles/2124725.webp)
Geo-sp
- 1,542
- 2
- 18
- 41
6
votes
1 answer
Spatio-temporal kriging in python using sklearn?
I have weather data available for about 6 weather stations. For all these stations I have the longitude and latitude available, and also the datetime (every 10 minutes from beginning of 2016 or so). I want to use the kriging interpolation method to…
![](../../users/profiles/9697428.webp)
Tim
- 269
- 3
- 8
6
votes
1 answer
How to back transform normal score transformed data
I have daily rainfall from 61 gauging stations for 12 years in a catchment(8000 Km2).
The goal is create 5Km and 25 Km resolution gridded daily rainfall product. As the no of stations are small and not all stations have rain even in rainy season, i…
![](../../users/profiles/1142937.webp)
user1142937
- 294
- 5
- 17
6
votes
3 answers
options to allow heavily-weighted points on a map to overwhelm other points with low weights
what are some good kriging/interpolation idea/options that will allow heavily-weighted points to bleed over lightly-weighted points on a plotted R map?
the state of connecticut has eight counties. i found the centroid and want to plot poverty rates…
![](../../users/profiles/1759499.webp)
Anthony Damico
- 5,100
- 6
- 43
- 71
6
votes
2 answers
How to push the for-loop down to numpy
I have the following piece of code doing exactly what i want (it is part of a kriging method). But the problem is that it goes too slow, and i wish to know if there is any option to push the for-loop down to numpy? If i push out the numpy.sum, and…
![](../../users/profiles/2393569.webp)
usethedeathstar
- 2,049
- 1
- 15
- 30
6
votes
1 answer
heatmap on ggmap error and best practice
I want to plot a heatmap on a ggmap.
library(ggmap)
turku<-get_map('turku', zoom=13)
turkumap<-ggmap(turku, extent="device", legend="topleft")
turkumap
turkumap+geom_density2d(mapping=aes(x = lon, y = lat),data = test, )
the error i get…
![](../../users/profiles/2664388.webp)
Irene
- 704
- 1
- 9
- 35
4
votes
1 answer
Plotting Probability Density Heatmap Over Time in R
Let's say I have the output of a monte-carlo simulation of one variable over several different iterations (think millions). For each iteration, I have the values of the variable at each point in time (ranging from t=1 to t=365).
I would like to…
![](../../users/profiles/3258087.webp)
Alfalfa
- 131
- 7
3
votes
1 answer
how to change the lag distance while calculating a Variogram in R
I am trying to calculate an Experimental-Variogram value at different lag distances, so I am using the variogramm command
variog1 <- variogram((Copper)~1,ds)
but I can't know how to specify the needed lag distance.
For example I want to get a…
![](../../users/profiles/8141944.webp)
Ahmed Emam
- 33
- 6
3
votes
1 answer
How to apply kriging for 3D arrays in Python?
I have a 3D numpy array with some elevation values. I would like to apply kriging interpolation method to them and get a full valued array with same given shape.
My purpose is to create a surface actually. The values, I have, are hydrogelogical…
![](../../users/profiles/8784357.webp)
Mustafa Uçar
- 373
- 3
- 17
3
votes
1 answer
Universal kriging using lat long gstat R
I'm new at R and I'm having some trouble to perform a universal kriging with gstat R.
As Hengl et al. (2004) say "Universal kriging should be reserved for the case where the drift (or trend) is modelled as a function of the coordinates only". So, I…
![](../../users/profiles/6805177.webp)
Fjord
- 85
- 1
- 7