Library: | spatial |
See also: | SPKRsurfls SPKRsurfgls SPKRexpcov SPKRgaucov SPKRsphercov SPKRtrmat SPKRsemat SPKRcorrelogram SPKRvariogram SPKRmultcontours |
Quantlet: | SPKRprmat | |
Description: | Evaluates a Kriging surface over a grid. |
Usage: | mygrid = SPKRprmat (obj, xl, xu, yl, yu, n) | |
Input: | ||
obj | list - (of type "trgls") calculated by SPKRsurfgls | |
xl | scalar - lower limit in x-direction of the rectangle for grid | |
xu | scalar - upper limit in x-direction of the rectangle for grid | |
yl | scalar - lower limit in y-direction of the rectangle for grid | |
yu | scalar - upper limit in y-direction of the rectangle for grid | |
n | scalar - use n x n grid within the rectangle | |
Output: | ||
res | list - consisting of components z, xl, xu, yl, yu, n, type -- | |
z | grid - for further useage with SPKRmultcontours | |
xl | scalar - same as input value xl | |
xu | scalar - same as input value xu | |
yl | scalar - same as input value yl | |
yu | scalar - same as input value yu | |
n | scalar - same as input value n | |
type | string - "prmat" |
; load the spatial statistics library library ("spatial") ; read a spatial data set topo = read("topo.dat") ; calculate a trend surface of order 2, using expcov as ; spatial covariance function with dval = 0.7, alph = 0, ; and se = 1 myres = SPKRsurfgls(2, 0, topo, 1000, 0.7, 0, 1) ; calculate a 30 x 30 grid within [0, 6.5] x [0, 6.5] ; using trend surface myres mygrid = SPKRprmat (myres, 0, 6.5, 0, 6.5, 30)
A grid suitable for display through SPKRmultcontours.
Library: | spatial |
See also: | SPKRsurfls SPKRsurfgls SPKRexpcov SPKRgaucov SPKRsphercov SPKRtrmat SPKRsemat SPKRcorrelogram SPKRvariogram SPKRmultcontours |