2.2.1.14 xyzgrid

Menu Information

Generate Grid (context menu)

Brief Information

Generate grid data from XYZ contour plot

Additional Information

Minimum Origin Version Required: 2016 SR0


Command Line Usage

1. xyzgrid iz:=3 oz:=<new>; // With worksheet active

2. xyzgrid iz:=3 rows:=50 cols:=50 oz:=<new>; // With worksheet active

3. xyzgrid rows:=40 cols:=40; // With contour graph window active

4. xyzgrid rows:=40 cols:=40 xmin:= -100 xmax:=-80 ymin:=30 ymax:= 40 type:=mat; // With contour graph window active

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iz

Input

XYZRange

<active>
XYZ worksheet data used to generate grids.
X Grid Size rows

Input

int

21
Specify the number of grid points along X direction.
Y Grid Size cols

Input

int

21
Specify the number of grid points along Y direction.
X Minimum xmin

Input

double

<auto>
the minimum X value of the output XYZ/matrix data.
X Maximum xmax

Input

double

<auto>
the maximum X value of the output XYZ/matrix data.
Y Minimum ymin

Input

double

<auto>
the minimum Y value of the output XYZ/matrix data.
Y Maximum ymax

Input

double

<auto>
the maximum Y value of the output XYZ/matrix data.
Output to type

Input

int

0
Specify which data form to be outputted.

Option list:

  • xyz{0}:XYZ Data
    Output interpolated contour values in XYZ data form.
  • mat{1}:Matrix
    Output interpolated contour values in matrix form.
Output oz

Output

XYZRange

[<new>]<new>!(<new>,<new>,<new>)
specifying a worksheet for the output gridding data. See the syntax here.
Output Matrix om

Output

MatrixObject

<new>
Specify a matrix for the output gridding data. See the syntax here.

Description

This X-Function is used to create gridding data from XYZ contour/XYZ worksheet data.

Algorithm

The values for the specified grid points are computed by triangulation and line interpolation as described in algorithm section. Note that contour values outside input data range will be set as missing values.

References

Related X-Functions


Keywords:gridding