Chapter Contents 
Previous 
Next 
The G3GRID Procedure 
Requirements:  Exactly one grid request is required. 
GRID gridrequest </option(s)>; 
gridrequestmust
be:

y*x=z(s) 
option(s) can be one or more options from any or all of the following categories:
AXIS1=ascendingvaluelist  
AXIS2=ascendingvaluelist  
NAXIS1=n  
NAXIS2=n 
JOIN  
NEAR=n  
NOSCALE  
PARTIAL  
SMOOTH=ascendingvaluelist  
SPLINE 
Required Arguments 
Although the GRID statement can specify only two horizontal variables, it can include multiple vertical variables. Separate vertical variables with blanks:
grid x*y=z w u v;
Options 
n <...n>  
n TO n <BY increment>  
n <...n> TO n <BY increment > <n <...n> > 
Featured in:  Using the Default Interpolation Method and Using Spline Interpolation 
n <...n>  
n TO n <BY increment>  
n <...n> TO n <BY increment > <n <...n> > 
Featured in:  Using the Default Interpolation Method and Using Spline Interpolation 
A value specified with NAXIS1= is ignored if values are also specified with AXIS1=.
A value specified with NAXIS2= is ignored if values are also specified with AXIS2=.
If the number of input data points is insufficient for the number that you specify with NEAR=, a smaller number of data points is used.
Featured in:  Using Partial Spline Interpolation 
Featured in:  Using Partial Spline Interpolation 
n <...n>  
n TO n <BY increment>  
n <...n> TO n <BY increment > <n <...n> > 
For each value of the smoothing parameter, a function u (x, y) is formed that minimizes
where n is the number of data points and the pairs (x_{j}, y_{j }) are the available points, with corresponding function values z_{j} (Wahba 1979).
The higher the value of the smoothing parameter, the smoother the resulting interpolation. The lower the smoothing parameter, the closer the resulting surface is to the original data points. A smoothing parameter of 0 produces the same results as the SPLINE option without SMOOTH=.
This procedure repeats for each value of the smoothing parameter. The output data set that you specify in the OUT= option contains the interpolated values, the values of the grid points, and the values of the smoothing parameter in the variable _SMTH_. The output data set contains a separate grid for each value of the smoothing parameter.
Featured in:  Using Spline Interpolation and a Smoothed Spline 
Featured in:  Using Spline Interpolation and a Smoothed Spline and Using Spline Interpolation 
Controlling Observations in the Output Data Set 
Number of Observations Contained in the Output Data Set shows the number of observations that will be in the output data set if you use any of these options.
Options Specified  Number of Observations in Output Data Set 

None  121 
AXIS1=  (number of values for AXIS1=) * 11 
AXIS2=  (number of values for AXIS2=) * 11 
NAXIS1=  (value of NAXIS1=) * 11 
NAXIS2=  (value of NAXIS2=) * 11 
AXIS1=, AXIS2=  (number of values for AXIS1=) * (number of values for AXIS2=) 
AXIS1=, NAXIS1=  (number of values for AXIS1=) * 11 
AXIS1=, NAXIS2=  (number of values for AXIS1=) * (value of NAXIS2=) 
AXIS2=, NAXIS1=  (number of values for AXIS2=) * (value of NAXIS1=) 
AXIS2=, NAXIS2=  (number of values for AXIS2=) * 11 
NAXIS1=, NAXIS2=  (value of NAXIS1=) * (value of NAXIS2=) 
If you specify multiple smoothing parameters, the number of observations in the output data set will be the number shown in Number of Observations Contained in the Output Data Set multiplied by the number of smoothing values that you specify in the SMOOTH= option. If you use BYgroup processing, multiply the number in the table by the number of BY groups.
Depending on the shape of the original data and the options that you specify, the output data set may contain values for the vertical (z) values that are outside of the range of the original values in the data set.
Chapter Contents 
Previous 
Next 
Top of Page 
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.