geo327g/386g: spatial interpolation

35
Geo327G/386G: GIS & GPS Applications in Earth Sciences Jackson School of Geosciences, University of Texas at Austin Spatial Interpolation & Geostatistics Lag Mean + Distance between pairs of points (Z i –Z j ) 2 / 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Lag 10/27/2020 1

Upload: others

Post on 19-Dec-2021

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Spatial Interpolation & Geostatistics

Lag Mean

+

Distance between pairs of points

(Zi–

Z j)2 /

2

++++

+

++

+

+

+

++

+

+

++ +

+ +

++

+

++ + ++

++

+

++

+ +

Lag

10/27/2020 1

Page 2: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Tobler’s Law

▪ “All places are related, but nearby places are related more than distant places”

❑Corollary: fields vary smoothly, slowly and show strong “spatial autocorrelation” – attribute(s) and location are strongly correlated: Zi = f (xi, yi)

10/27/2020 2

Page 3: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Spatial Interpolation

❑Determination of unknown values or attributes on the basis of values nearby

❑Used for data that define continuous fields❑E.g. temperature, rainfall, elevation, concentrations

❑Contouring, raster resampling are applications already discussed

Spatial Interpolation = Spatial Prediction

10/27/2020 3

Page 4: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Spatial Interpolation

▪ I.e. Interpolate between variably spaced data to create uniform grid of values

9

6

7

8

8

8

5

9

8

9 9 8 7

8657

8

9

9

7

8

9 8

8

8 8

8

8

10/27/2020 4

Page 5: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Interpolation Methods – Many!

❑All address the meaning of “near” in Tobler’slaw differently

❑How does space make a difference?

❑Statistical mean not best predictor if Tobler’s law is true

10/27/2020 5

Page 6: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Interpolation methods

▪ Inverse Distance Weighting (IDW)❑Assumes influence of adjacent points decreases with

distance

Where: z0 = value of estimation point

zi = value of neighboring point

wi = weighting factor; e.g. = 1/(distance from neighbor)2

wi zii =1E

n

z0 =

i =1E

n

wi

10/27/2020 6

Page 7: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Inverse Distance Weighting

9

6

7

8

8 8

5

9

8

6

8

5

8

1 unit

On basis of four nearest neighbors:

z0 = (8/(1)2

+ 8/(2)2+ 6/(2.5)

2+ 5/(2)

2)/(1.66)

z0 = (8.0 + 2.0 + 0.96 + 1.25)/(1.66) = 7.36

z0

?

10/27/2020 7

Page 8: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Inverse Distance Weighting (I.D.W.)

❑Unknown value is the average of the observed values, weighted by inverse of distance, squared❑Distance to point doubles, weight decreases by factor of 4

❑ Can alter IDW by:❑Alter number of closest points

❑Choose points by distance/search radius

❑Weight be directional sectors

❑Alter distance weighting; e.g. cube instead of square

10/27/2020 8

Page 9: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

I.D.W. Characteristics

❑Is an Exact Method of interpolation – will return a measured value when applied to measured point.

❑Will not generate smoothness or account for trends, unlike methods that are “inexact”

❑Answer (a surface) passes through data points

❑Weights never negative –> interpolated values can never be less than smallest z or greater than largest z. “Peaks” and “pits” will never be represented.

10/27/2020 9

Page 10: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

I.D.W. Characteristics

❑ No “peaks” or “pits” possible; interpolated values must lie within range of known values

Regions of Misfit

Trend surface

I.D.W.surface

Data Point

Z-va

lue

Distance

10/27/2020 10

Page 11: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Interpolation Methods

❑IDW is inappropriate for values that don’t decrease as a function of distance (e.g. topography)

❑Other deterministic, exact methods:❑Spline

❑Natural Neighbor

10/27/2020 11

Page 12: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Exact Methods - Spline

❑Fit minimum curvature surface through observation points; interpolate value from surface

❑Good for gently varying surfaces❑E.g. topography, water table heights

❑Not good for fitting large changes over short distances

❑Surface is allowed to exceed highest and be less than lowest measured values

10/27/2020 12

Page 13: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Exact Methods: IDW vs. Spline

IDW:❑ No predicted highs or

lows above max. or min. values

❑ No smoothing; surface can be rough

Spline:❑ Minimum curvature

result good for producing smooth surfaces

❑ Can’t predict large changes over short distances

(images from ArcGIS 9.2 Help files)

10/27/2020 13

Page 14: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Comparisons-I.D.W. vs. Spline

IDW, 6 nearest, contoured for 6 classes

Spline, contoured for same 6 classes

▪ Note smoothing of Spline – less “spikey”

▪ IDW contours less continuous, fewer inferred maxima and minima

10/27/2020 14

Page 15: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Inexact (Approximate) Methods

Inexact = Answer (surface) need not pass through input data points

▪ Trend surface –curve fitting by least squares regression

▪ Deterministic – one output, no randomness allowed

▪ Kriging – weight by distance, consider trends in data

▪ Stochastic – incorporates randomness

10/27/2020 15

Page 16: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Approximate Methods - Trend

▪ Fits a polynomial to input points using least squares regression.

▪Resulting surfaces minimize variance w.r.t. input values, i.e. sum of difference between actual and estimated values for all inputs is minimized.

▪ Surface rarely goes through actual points

▪ Surface may be based on all data (“Global” fit) or small neighborhoods of data (“Local” fits).

10/27/2020 16

Page 17: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Trend Surfaces

Equations are either:❑Linear – 1st Order: fit a plane❑ Z = a + bX + cY

❑Quadratic – 2nd Order: fit a plane with one bend (parabolic)❑Z = (1st Order) + dX2 + eXY + fY2

❑Cubic – 3rd Order: fit a plane with 2 bends (hyperbolic)❑Z = (2nd Order) + gX3 + hX2Y + iXY2 + Y3

Where:

a, b, c, d, etc. = constants derived from solution of simultaneous equations

X, Y = geographic coordinates

10/27/2020 17

Page 18: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Trend Surfaces – “Global Fitting”

Linear(Plane)

Quadratic(Parabolic surface)

Cubic (Hyperbolic surface)

Source: Burrough, 1986

Co

nto

ur

map

s o

f tr

end

su

rfac

es

for

Z

Input data (x, y, z)

X axis

Y ax

is

10/27/2020 18

Page 19: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Trend Surfaces – Local fitting

❑ Local Polynomial Interpolation fits many polynomials, each within specified,overlapping “neighborhoods”.

❑ Neighborhood surface fitting isiterative; final solution is based on minimizing RMS error

❑ Final surface is composed of best fits to all neighborhoods

❑ Can be accomplished with tool in ESRI Geostatistical Analyst extension

10/27/2020 19

Page 20: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Step 1

Trend Surfaces – Local fitting

❑ 2-D profile view of a model surface❑ Neighborhood 1 points (red) are being fit to a plane by

iteration (2 steps are shown) and an interpolated point is being created

Step 1; 2nd Iteration

New interpolated point

2nd iteration,local fitted surface

(images from ArcGIS 9.2 Help files)

Interpolated point

Neighborhood 1data points

1st iteration, local fitted surface

Excludeddata

Model

10/27/2020 20

Page 21: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Step 2

Trend Surfaces – Local fitting, Step 2

❖ Model surface generated by many local fits▪ Note that several neighborhoods share some of the same

data points: neighborhoods overlap

Step 3(images from ArcGIS 9.2 Help files)

Interpolated point 3

Neighborhood 3data points

local fitted surface 3

Excludeddata

Interpolated point 2

Neighborhood 2data points

local fitted surface 2

Excludeddata

10/27/2020 21

Page 22: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Step 4

Trend Surfaces – Local fitting, Step 3

❖ Five different polynomials generate five local fits; in this example all are 1st Order.

Step 5(images from ArcGIS 9.2 Help files)

Interpolated point 4

Neighborhood 4data points

local fitted surface 4

Excludeddata Interpolated point 5

Neighbor-hood 5data points

local fitted surface 5

Excludeddata

10/27/2020 22

Page 23: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Trend Surfaces – Local fitting, Step 4

❑ Note that model surface (purple) passes through interpolated points, not measured data points.

(image from ArcGIS 9.2 Help files)

Original data points are black

Interpolated points are in colors

❑ Result:

10/27/2020 23

Page 24: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Why Trend, Spline or IDW Surfaces?

▪ No strong reason to assume that z correlated with x, y in these simple ways

▪ Fitted surface doesn’t pass through all points in Trend

▪ Data aren’t used to help select model

▪ → Exploratory, deterministic techniques, but theoretically weak

10/27/2020 24

Page 25: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Deterministic vs. Geostatistical Models

▪ Deterministic: purely a function of distance

▪ No associated uncertainties are used or derived

▪ E.g. IDW, Trend, Spline

▪ Geostatistical: based on statistical properties

▪ Uncertainties incorporated and provided as a result

▪ Kriging

10/27/2020 25

Page 26: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Approximate Methods - Kriging

❑Kriging❑Another inverse distance method

❑Considers distance, cluster and spatial covariance (autocorrelation) – look for patterns in data

❑Fit function to selected points; look at correlation, covariance and/or other statistical parameters to arrive at weights – interactive process

❑Good for data that are spatially or directionally correlated (e.g. element concentrations)

10/27/2020 26

Page 27: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging

▪ Look for patterns over distances, then apply weights accordingly.

▪ Steps:

1) Make a description of the spatial variation of the data -variogram

2) Summarize variation by a function

3) Use this model to determine interpolation weights

10/27/2020 27

Page 28: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging – Step 1

❑Describe spatial variation with Semivariogram

x →

y →

7

56

67

5

5

34

2

++

Distance between pairs of points

(Zi – Zj)2 / 2

+++ +

+

++

+

+

+

++

+

+

++ +

++

++

+

++ + +

+

+

++

+

++

+ +

“Point cloud”

10/27/2020 28

Page 29: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging – Step 1

❑Divide range into series of “lags” (“buckets”, “bins”)

❑Find mean values of lags

+

Distance between pairs of points

(Zi – Zj)2 / 2

+++ +

+

++

+

+

+

++

+

+

++ +

++

++

+

++ + +

+

++

+

++

+ +

Lag

Lag Mean

10/27/2020 29

Page 30: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging – Step 2❑Summarize spatial variation with a function

❑Several choices possible; curve fitting defines different types of Kriging (circular, spherical, exponential, gaussian, etc.)

+

Distance between pairs of points

(Zi–

Z j)2 /

2

+++ +

+

++

+

+

+

++

+

+

++ +

++

++

+

++ + +

+

++

+

++

+ +

10/27/2020 30

Page 31: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging – Step 2

❑Key features of fitted variogram:

Nugget

Distance between pairs of points (d)

Sill

Range

Sem

ivar

ian

ce

Nugget: semivariance at d = 0

Range: d at which semivariance is constant

Sill: constant semivariance beyond the range

10/27/2020 31

Page 32: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging – Step 2

▪ Key features of fitted variogram:

❑Nugget – Measure of uncertainty of z values; precision of measurements

❑Range – No structure to data beyond the range; no correlation between distance and z beyond this value

❑Sill – Measure of the approximate total variance of z

10/27/2020 32

Page 33: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging – Step 2

❑Model surface profiles and their variograms:

Source: O’Sullivan and Unwin, 2003

❑ As local variation in surface increases, range decreases, nugget increases

10/27/2020 33

Page 34: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Kriging – Step 3

❑Determine Interpolated weights

❑Use fitted curve to arrive at weights – not explained here; see O’Sullivan and Unwin, 2003 for explanation

❑In general, nearby values are given greater weight (like IDW), but direction can be important (e.g. “shielding” can be considered)

10/27/2020 34

Page 35: GEO327G/386G: Spatial Interpolation

Geo327G/386G: GIS & GPS Applications in Earth SciencesJackson School of Geosciences, University of Texas at Austin

Review:Deterministic vs. Geostatistical Models

❑Deterministic: interpolation purely a function of distance

❑No associated uncertainties are used or derived

❑E.g. IDW, Trend, Spline

❑Geostatistical: interpolation is statistically based

❑Uncertainties incorporated and provided as a result

❑Kriging – next time

10/27/2020 35