Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The KRIGE2D Procedure

GRID Statement

GRID grid-options ;

You can use the following options to specify the grid of spatial locations for the kriging estimates. The grid specification is applied to all PREDICT and MODEL statements.

There are two basic methods for specifying the grid. You can specify the x and y coordinates explicitly, or they can be read from a SAS data set. The options for the explicit specification of grid locations are as follows.

X=number
X=x1, ... ,xm
X=x1 to xm
X=x1 to xm by \delta x
specifies the x coordinate of the grid locations.

Y=number
Y=y1, ... ,ym
Y=y1 to ym
Y=y1 to ym by \delta y
specifies the y coordinate of the grid 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;


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

GRIDDATA=SAS-data-set
GDATA=SAS-data-set
specifies a SAS data set containing the x and y grid coordinates.

XCOORD= (variable-name)
XC= (variable-name)
specifies the name of the variable containing the x coordinate of the grid locations in the GRIDDATA= data set.

YCOORD= (variable-name)
YC= (variable-name)
specifies the name of the variable containing the y coordinate of the grid locations in the GRIDDATA= data set.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.