gstat is an R package for spatial and spatio-temporal geostatistical modelling, prediction and simulation
Questions tagged [gstat]
130 questions
0
votes
1 answer
What KInd of variogram should I plot before doing Kriging in R?
I have a csv file named seoul3112, contains PM10 concentrations. please, download..I have tried to plot sample variogram and fit a model on it.
library(sp)
library(gstat)
library(rgdal)
seoul3112<-read.csv("seoul3112.csv",row.name=1)
…

Orpheus
- 329
- 6
- 21
0
votes
1 answer
Merge spatial point dataset with Spatial grid dataset using R. (Master dataset is in SP Points format)
I am working on spatial datasets using R.
Data Description
My master dataset is in SpatialPointsDataFrame format and has surface temperature data (column names - "ruralLSTday", "ruralLSTnight") for every month. Data snippet is shown below:
Master…

sv_noname
- 1
- 2
0
votes
1 answer
minimum sample size for estimating a reliable variogram
I have thirty three SO2 readings from sensing equipments installed at 33 locations spread over a large region (one observation per city). The sample size is fixed and can not be increased because of the number of equipments installed. Now…

Asad Ali
- 25
- 6
0
votes
1 answer
Variogram fit using gstat package in R
The following code is for predicting v value at three locations with the kriging method in R using gstat package.
library(gstat);
library(sp);
walk470 <- read.table("D:/kriging/walk470.txt",header=T)
attach(walk470)
coordinates(walk470) =…

Chandan
- 764
- 2
- 8
- 21
0
votes
1 answer
How Matrix Inversion is done in "krige" function of gstat package of R tool
I am in the midway of understanding how gstat package in R tool implements kriging method. I have understood the calculation of empirical semivariogram and fitting semivariogram models. But I did not understand how it implements the matrix inversion…

Chandan
- 764
- 2
- 8
- 21
0
votes
1 answer
Error with R and gstat.predict
I am trying to use the gstat package in R to make some predictions with added covariates.
I generate the gstat object g the following way:
# We use the prediction sample for pm2.5 (primary) and pm10 (secondary) variable
g <- gstat(NULL, "ln.pm2.5",…

Marisol Amador
- 1
- 1
0
votes
2 answers
How can I get the median of all measurements within a certain distance?
There's probably a better way, but since I'm new to R and already had the IDW code set up, I've been trying to get the median of all points within 2000 meters by tweaking the IDW code, setting the weighting power (idp) near zero so closer points are…

Dave Dauphiné
- 1
- 1
- 2
0
votes
1 answer
install gstat on r 3.0.3 for mac
I have Mac OS Yosemite and R 3.0.3. I really need to install the gstat package, but I keep getting this message:
install.packages("gstat")
trying URL 'http://mirrors.softliste.de/cran/bin/macosx/contrib/3.0/gstat_1.0-19.tgz'
Content type…
0
votes
2 answers
Unable to find an inherited method for function ‘krige’ for signature ‘"lm", "SpatialPointsDataFrame"’
Could anyone tell me why I'm getting this "Error in (function (classes, fdef, mtable)"?
I see something about a second "grid" database in the R examples. Do I need to create this? So far my target variables, predictors, and coordinates are all in…

Dave Dauphiné
- 1
- 1
- 2
0
votes
1 answer
distance from grid and a separate set of points no for cycles
I need to calculate the distance between a grid that is the output of my kriging interpolation and some points where i need to interpolate.
Problem is that the grid is quite big and making the banal double for cycle calculating the distance between…

Irene
- 744
- 1
- 12
- 36