SpatialEstimate
SpatialEstimate[{loc1val1,loc2val2,…}]
creates a spatial prediction from values vali given at locations loci.
SpatialEstimate[{loc1,loc2,…}{val1,val2,…}]
generates the same result.
Details and Options
- SpatialEstimate is also known as kriging and geospatial prediction.
- SpatialEstimate returns a SpatialEstimatorFunction and is typically used to predict the value for locations other than loci. The values include things like elevation, concentrations, temperatures, etc.
- SpatialEstimate works by identifying a global trend model and a local variation model.
- The local variations part is defined to minimize the expected prediction error where is the true value and and is the predicted value.
- There are two parts to the local variations. The VariogramFunction describes how much the value at a location is affected by nearby values, and the SpatialNoiseLevel describes how much noise there is in measurements of the values.
- With zero noise variance, the predictor function will interpolate through the given values. With nonzero noise variance, the predictor function will approximate the given values but not interpolate and effectively smooth out the surface. The SpatialNoiseLevel effectively gives a way to control the level of smoothing in the resulting SpatialEstimatorFunction.
- The locations loci can have the forms:
-
{p1,…,pd} geometrical locations GeoPosition[…],GeoPositionENU[…],… geographical locations - The values vali can be real numeric values or quantities.
- The following options can be given:
-
SpatialTrendFunction Automatic global trend model VariogramFunction Automatic local variation model SpatialNoiseLevel Automatic noise level in vali
Examples
open allclose allBasic Examples (3)
SpatialEstimate computes a continuous function for sparse values given with locations:
Compute estimated value at a location:
Create a continuous spatial estimator function to visualize density:
Create spatial estimator function with constant trend:
Visualize spatial estimator function in the observation region inferred from the locations:
Rainfall amounts at locations in Switzerland:
Create spatial estimator function with linear trend:
Evaluate spatial estimator function at uniform random locations in the observation region:
Scope (2)
Create spatial estimator for random data:
Define a variogram model to use:
Create spatial estimator function with the variogram model and quadratic trend:
Use SpatialEstimate with specified variogram function:
Create spatial estimator function with linear trend:
Find the variogram model used:
Compute the estimator functions with the fitted variogram model:
Options (4)
SpatialNoiseLevel (1)
Specify noise level using SpatialNoiseLevel:
Create spatial estimator function with positive noise level:
If the noise level is 0, SpatialEstimate interpolates exactly:
SpatialTrendFunction (1)
Specify trend function using SpatialTrendFunction:
VariogramFunction (1)
Specify variogram model using VariogramFunction:
Create spatial estimator function with an exponential variogram model:
Use pre-fitted VariogramModel:
DistanceFunction (1)
Specify a distance function using DistanceFunction:
Applications (4)
Often spatial data is given on a regular grid with missing regions, for example, in satellite ozone readings:
Create a continuous spatial estimator:
Find the estimated ozone value for a specific location:
Evaluate the spatial estimator function at uniform random locations in the observation region:
Use SpatialEstimate to create a continuous estimate from sparse observation locations:
Compute estimates using specific models:
Create a set of random points and compute the estimated values at these locations:
Visualize rainfall values over the whole region:
SpatialEstimate can create a smoother picture of the data:
Standard ways to visualize the data:
Spatial estimate with smoothing:
Compute estimates for random locations:
Compute an estimate of the yield of the entire field:
Locations of scallop samples in the Atlantic Ocean, annotated with the total number of specimens caught as well as pre-recruit and adult numbers:
Extract the spatial point data:
First select locations with positive catch numbers:
Compute rate of recruits relative to the catch size:
Use SpatialEstimate to create an estimate of recruit rates from sparse catch locations:
Create a set of random points and compute the estimated values at these locations:
Visualize the recruit rates over the whole observation region:
Properties & Relations (2)
For large spatial noise levels, the spatial estimator converges to the trend function:
Compute SpatialEstimate for increasing values of noise level for specified polynomial trend order:
Only with zero SpatialNoiseLevel is SpatialEstimate an exact interpolator:
Compute spatial estimate for varying values of spatial noise level:
Possible Issues (1)
Some variograms can be badly conditioned:
The result does not represent the data well:
Allowing positive SpatialNoiseLevel acts as a regularization:
Text
Wolfram Research (2021), SpatialEstimate, Wolfram Language function, https://reference.wolfram.com/language/ref/SpatialEstimate.html.
CMS
Wolfram Language. 2021. "SpatialEstimate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SpatialEstimate.html.
APA
Wolfram Language. (2021). SpatialEstimate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpatialEstimate.html