Gsharp Training Material Home Table of Contents

Interpolation

GsharpÕs interpolations are discussed in detail on Page 2-33 of the User Guide

¥ Spline - Spline smothing of X,Y

¥ Smooth - Smooth X,Y

¥ Polyfit - fit X,Y to a polynomial

¥ Bilinear - irregular X,Y,Z to grid

¥ Bivariate - irregular X,Y,Z to grid

¥ Regular - from grid to grid.

¥ Kriging - irregular X,Y,Z to grid (with enormous control!)

Interpolation Example

grid = bilinear(X,Y,Z);

Interpolation Control

The location of the points that your data is interpolated onto can be controlled in two ways:

¥ It chooses for you. You give an integer, n, and it selects n equally spaced points with the same limits as the input data

¥ You choose. You supply a dataset containing the exact values you want to be used.

You will presumaby need a dataset containing the values interpolated on to use when plotting, so we recommend using the same dataset for the interpolation and avoid any confusion.

 

It is also possible to interpolate within regions and to specify fault lines.