Questions tagged [gstat]

An R package that provides support for performing spatial and spatio-temporal geostatistical modelling, prediction and simulation.

8 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
136 views

Cokriging: zero distance cross-semivariance in undersampled cases [gstat error]

Trying to cokrige two variables that are not perfectly colocated (one has sparser measurements than the other), I faced an issue that I'll illustrate with the following MRE. With the meuse dataset, ...
3
votes
1answer
220 views

Error in fit.variogram.gls method of gstat package in R

I was trying to fit the variogram parameters of an empirical variogram using GLS (Generalized Least Squares) fitting method. I used the 'fit.variogram.gls' method of the 'gstat' package in R. I tried ...
2
votes
0answers
81 views

Spatial Downscaling of global temperature in R?

I am interested in spatial downscaling of global temperature to grid cell. What I have is a vector of future annual global temperature values which I would like to downscale to (hopefully) 0.5°. ...
2
votes
0answers
307 views

gstat's krige.cv() error: “Error: dimensions do not match:”

I am using krige.cv() for cross validation of a data set with 1394 locations. In my code, empirical variogram estimation, model fitting, and kriging (by krige()) everything works fine. But when I use ...
1
vote
1answer
61 views

R kriging raster returns NA for some prediction points?

I am trying to interpolate a raster layer of chlorophyll-a data using kriging (gstat::krige) in R, however the resulting interpolation is showing NA values in a peculiar straight line through the ...
1
vote
0answers
63 views

Determining covariance of irregularly spaced spatial data in R?

I'm comparing concentration C of a contaminant in the same spatial region at two time point 2000 and 2010 with sample size of N_2000 = 51 and N_2010 = 26 (not all the samples are from the same ...
0
votes
0answers
71 views

Cokriging, Zero distance semivariance in cross-variogram error

Trying cokriging with simulated data, I faced a problem that did not seem one in the demo(cokriging) with the meuse dataset: I can't use fit.lmc() default but need to specify fit.method=1 as the ...
0
votes
1answer
157 views

Error in gstat.formula.predict(d$formula, newdata, na.action = na.action, : NROW(locs) != NROW(X): this should not occur

I'm trying to perform regression kriging using the code creating variogram m <- vgm(var(soil$Ba), "Sph", sqrt(areaSpatialGrid(slope))/4, nugget=0) v <- fit.variogram(variogram(Ba~RASTERVALU, ...