controls specification of a grid in one dimension or a grid of individual prediction locations.

When you specify the NPTS=number option and the coordinates of two points in the GRIDDATA= data set or in both the X= and Y= options, you request a linear
prediction grid. Its direction is across the line defined by the specified points. The grid size is equal to the number of points that you specify in the NPTS= option, where number .

When you specify the NPTS=ALL option and the coordinates for any number of points in the GRIDDATA= data set or in each of
the X= and Y= options, the KRIGE2D procedure performs prediction only at the specified individual locations. Use the NPTS=ALL
option to examine a set of individual points anywhere on the XY plane or to specify a custom grid in one dimension.

If the number of x coordinates and the number of y coordinates in the X= and Y= options, respectively, are different, then the NPTS= option is ignored; in that case, a two-dimensional
grid is used according to the specified X= and Y= options.

If you specify a prediction grid with any number of points other than two in the GRIDDATA= data set, then the option NPTS=ALL
has the same effect as omitting the NPTS= option.

specifies the y coordinate of the grid locations.

Use the X= and Y= options of the GRID statement to specify a grid in one or two dimensions, or a grid of individual prediction
locations.

For example, the following two GRID statements are equivalent.

grid x=1,2,3,4,5 y=0,2,4,6,8,10;

grid x=1 to 5 y=0 to 10 by 2;

In the following example, the first GRID statement produces a grid in two dimensions. The second statement produces predictions
only for the four individual points at the locations (1,0), (2,5), (3,7), and (4,10) on the XY plane.

grid x=1 to 4 y=0,5,7,10;

grid x=1 to 4 y=0,5,7,10 npts=all;

In the next example, the first GRID statement specifies a 2-by-2 grid in two dimensions. The second GRID statement specifies
a linear grid of eight points. The grid is in the direction of the line defined by the specified points (2,8) and (3,5) on
the XY plane and it extends between these two points.

grid x=2,3 y=8,5;

grid x=2,3 y=8,5 npts=8;

The last example shows a GRID statement that specifies a linear grid made of seven points across the Y axis. In this case,
the syntax is sufficient to fully define a linear grid without the NPTS= option.

grid x=5 y=3 to 9;

To specify grid locations from a SAS data set, you must provide the name of the data set and the variables that contain the
values of the x and y coordinates.