SGRID

Purpose:

Grids XYZ data using spline interpolation.

Syntax:

SGRID(x, y, z, xi, yi)

x

-

A series. The X or horizontal range.

y

-

A series. The Y or vertical range.

z

-

A series. The Z or height data.

xi

-

Optional. A series, the output X range.

yi

-

Optional. A series, the output Y range.

Returns:

An array.

Example:

(x, y) = fxyvals(-10, 10, 2, -10, 10, 2)

z = cos(x*y)

xyz = sgrid(x[..], y[..], z[..], -10..0.5..10, -10..0.5..10)

 

Grids the function cos(x*y) over the range -10 to 10 interpolated with an increment of 0.5.

Remarks:

SGRID first interpolates in the direction with the most variability. The output X and Y ranges (xi, yi) are determined from the data if not specified.

See Also:

IGRID

SPLINE