1SHGRID(3NCARG)                   NCAR GRAPHICS                  SHGRID(3NCARG)
2
3
4

NAME

6       SHGRID  - interpolate random data in 3-space using a modified Shepard's
7       algorithm
8

SYNOPSIS

10       CALL SHGRID (N, X, Y, Z, F, NXO, NYO, NZO, XO, YO, ZO,
11                   FF, IWK, RWK, IER)
12

DESCRIPTION

14       N           (integer,input) The number of input data points (N > 9).
15
16       X           (real, input) An array containing the X coordinates of  the
17                   input data points.  X is dimensioned for N.
18
19       Y           (real,  input) An array containing the Y coordinates of the
20                   input data points.  Y is dimensioned for N.
21
22       Z           (real, input) An array containing the Z coordinates of  the
23                   input data points.  Z is dimensioned for N.
24
25       F           (real,  input) Array dimensioned for N containing data val‐
26                   ues.  F(I) is a functional value at (X(I),Y(I),Z(I)) for  I
27                   = 1 to N.
28
29       NXO         (integer,  input)  The number of X coordinate values in the
30                   output grid.
31
32       NYO         (integer, input) The number of Y coordinate values  in  the
33                   output grid.
34
35       NZO         (integer,  input)  The number of Z coordinate values in the
36                   output grid.
37
38       XO          (real, input) An array dimensioned for NXO containing the X
39                   coordinates of the output surface.
40
41       YO          (real, input) An array dimensioned for NYO containing the Y
42                   coordinates of the output surface.
43
44       ZO          (real, input) An array dimensioned for NZO containing the Y
45                   coordinates of the output surface.
46
47       FF          (real,  output)  An  array  dimensioned for NXO x NYO x NZO
48                   containing the calculated function values  for  the  output
49                   function.   FF(I,J,K) is the calculated functional value at
50                   (XO(I), YO(J), ZO(K)) for I=1,NXO and J=1,NYO and K=1,NZO.
51
52       IRK         (integer, input) An integer workspace of  length  at  least
53                   2*N.
54
55       RWK         (real, input) A work array dimensioned for 11*N+6.
56
57       IER         (integer,  output)  An  error  return  value.   If  IER  is
58                   returned as 0, then no errors were detected. If IER is non-
59                   zero,  then  refer  to  the  man page for shgrid_errors for
60                   details.
61

USAGE

63       SHGRID is called  to  interpolate  randomly  spaced  data  in  3-space.
64       SHGRID  uses  a modified Shepard's algorithm to construct an interpola‐
65       tory surface.
66

ACCESS

68       To use SHGRID, load the NCAR Graphics library ngmath.
69

SEE ALSO

71       shgrid_params, shseti, shgeti, shgetnp.
72
73       Complete documentation for Shgrid is available at URL
74       http://ngwww.ucar.edu/ngdoc/ng/ngmath/shgrid/shhome.html
75
77       Copyright (C) 2000
78       University Corporation for Atmospheric Research
79
80       This documentation is free software; you  can  redistribute  it  and/or
81       modify  it  under  the  terms of the GNU General Public License as pub‐
82       lished by the  Free  Software  Foundation;  either  version  2  of  the
83       License, or (at your option) any later version.
84
85       This  software  is  distributed in the hope that it will be useful, but
86       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
87       CHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
88       Public License for more details.
89
90       You should have received a copy of the GNU General Public License along
91       with  this  software;  if  not,  write to the Free Software Foundation,
92       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
93
94
95
96
97UNIX                            September 1999                  SHGRID(3NCARG)
Impressum