Questions tagged [spatial-interpolation]

Estimating new data points based on existing spatial observations

Spatial interpolation is a method of estimating new data points based on existing spatial interpolation. This tag focusses on spatial interpolation (data with a geographic component), although interpolation in a general also applies to e.g. timeseries.

Commonly, spatial interpolation involves using of the surrounding observations to estimate a new data point. This can be done using some kind of weighted mean (inverse distance weighted interpolation), by fitting a mathematical function through the existing points (splines), or a combination of both (kriging with external drift).

More information regarding which packages can be used to perform interpolation can be found on the Spatial Task View on CRAN, but in general the gstat, automap, Fields, and geoR packages are a good start for a wide range of spatial interpolation methods.

100 questions
0
votes
1 answer

How to perform Looping for idw in R

I have a data frame which contains point daily precipitation for 4 station for 2 years. I want to interpolate to 50m resoulution and write them in to 2 raster images. I used following code to achieve…
user3978632
  • 263
  • 3
  • 13
0
votes
0 answers

Is it possible to do linear interpolation for a function of more than one variable in R?

In practice I need an extension of the approx function that already exist in R to the multivariate case. Something similar to the interp function in matlab but coded in R on in C. Hope somebody can help me!
0
votes
1 answer

Plotting Interpolated spatial distribution of electric potentials measured from a sensor array

I have a small footprint EEG measurement device with 8 measurement electrodes and 1 reference electrode - the reference electrode is in the center of the sensor array, 4 measurement electrodes on the corners of the 2cm x 2cm sensor array and 4…
Naveen
  • 428
  • 1
  • 4
  • 27
0
votes
1 answer

To Assign a pixel value to a noninteger coordinate in an image in MATLAB

salam i am having an issue regarding assigning of value in MATLAB. i have a 5x5 image, i want to increase its size by 2 using surface approxiation in delaunay triangulation i used a bivariate polynomial for interpolation , for each triangle 9…
Jav
  • 43
  • 8
0
votes
1 answer

Higher order interpolation for contour plots in python

Is anybody of you aware of a higher order interpolation method (Catmull-Rom splines, cubic interpolation, etc.) for 2D contouring in Python? Skimage, Matplotlib, and OpenCV provide the functions measure.find_contours(), contours() and…
0
votes
1 answer

re-project SGDF with 5 km*5km resolution to 0.05*0.05

Forgive me for me being naive. I am having trouble with re-projecting SGDF. I have an xyz (x=longitude, y=latitude, z=value) 3-column dataset. Longitude and Latitude values are coordinates in EPSG:3035 format. I converted the data frame into a grid…
Nav
  • 125
  • 2
  • 7
0
votes
1 answer

autokrige and proj4string

I am using the R function autokrige from automap package, but I got an error and I do not know how to solve it. Do you have any hints? Thank you! sp.poidf <- SpatialPointsDataFrame(sp.poi,thresh.df) proj4string(sp.poidf) <- CRS("+proj=longlat…
user1634468
  • 3
  • 1
  • 3
0
votes
1 answer

Create colour Grid over map in R

I have been trying to create a grid over my world map in such a way as shown below example of gridded map I want to be able to colour the grid based on the rate2 column in my file. Most of the solutions I have gotten only colour the world based on…
-1
votes
1 answer

Seeking algorithm for optimal 2D spacing of agents among fixed locations

I'm designing a program where each of N agents is assigned a value K. There are N fixed locations, each with coordinates (x,y), and each location is assigned one agent. What algorithm could I use to distribute all agents among the locations such…
-1
votes
1 answer

Interpolation with MATLAB in EMG processing

I have 3 EMG recordings for 2 muscles, with a sampling rate of 1000Hz. In other words I have 3 matrices of EMG data; each has 2 rows (for 2 muscles). However the number of samples (columns) in each isn't the same: the first one has 2600 samples, the…
neda
  • 1
  • 1
1 2 3 4 5 6
7