I have a table of data with such structure:
longitude_for_data = c(32,68,89,145,176, -14, -42)
latitude_for_data = c(22,98,21,13 , 16,-134,-102)
Z_for_data = c(30,40,60,70 , 20, 40, 100)
data_to_analise = cbind(longitude_for_data,latitude_for_data,Z_for_data)
I want to make grid and fill it using linear kriging with variogram(as a variant -simple kriging):
longitude = seq(-180,180,by=5.0)
latitude = seq(-180,180,by=2.5)
lat_long_grid= expand.grid(longitude,latitude)
as a result I want to get something like that:
lon lat Z-kriging
1 -180 -180 32
2 -175 -180 35
3 -170 -180 38
4 -165 -180 39
5 -160 -180 40
6 -155 -180 41
How should I use kriging function to recieve that data table?