1SURF2(3NCARG) NCAR GRAPHICS SURF2(3NCARG)
2
3
4
6 SURF2 - 2D interpolation for gridded data
7
9 FUNCTION SURF2 (XX, YY, M, N, X, Y, Z, IZ, ZP, SIGMA)
10
11 This function interpolates a surface value at a specified coordinate
12 using bi-splines under tension. SURF1 must be called before invoking
13 SURF2. The desired interpolated value is returned as the value of the
14 function.
15
17 XX (real, input) Contains the X coordinate of a point to be
18 mapped onto the interpolated surface.
19
20 YY (real, input) Contains the Y coordinate of a point to be
21 mapped onto the interpolated surface.
22
23 M (integer, input) The number of grid lines in the X direc‐
24 tion. (M > 1)
25
26 N (integer, input) The number of grid lines in the Y direc‐
27 tion. (N > 1)
28
29 X (real, input) An array containing M X coordinates for grid
30 lines in the X direction. These values must be strictly
31 increasing.
32
33 Y (real, input) An array containing N Y coordinates for grid
34 lines in the Y direction. These values must be strictly
35 increasing.
36
37 Z (real, input) An array containing M x N functional values
38 at the grid points; Z(I,J) contains the functional value at
39 (X(I),Y(J)) for I=1,M and J=1,N.
40
41 IZ (integer, input) The row dimension of the matrix Z (IZ is
42 greater than or equal to M).
43
44 ZP (real, input) An array of size M x N x 3.
45
46 SIGMA (real, input) Tension factor. Values near zero result in a
47 cubic spline; large values (e.g. 50) result in nearly a
48 polygonal line. A typical value is 1.
49
51 SURF2 returns the interpolated value at the specified point T.
52
54 To use SURF2, load the NCAR Graphics library ngmath.
55
57 surf1, fitgrid_params.
58
59 Complete documentation for Fitgrid is available at URL
60 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
61
63 Copyright (C) 2000
64 University Corporation for Atmospheric Research
65
66 This documentation is free software; you can redistribute it and/or
67 modify it under the terms of the GNU General Public License as pub‐
68 lished by the Free Software Foundation; either version 2 of the
69 License, or (at your option) any later version.
70
71 This software is distributed in the hope that it will be useful, but
72 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
73 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
74 Public License for more details.
75
76 You should have received a copy of the GNU General Public License along
77 with this software; if not, write to the Free Software Foundation,
78 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
79
80
81
82
83UNIX March 1998 SURF2(3NCARG)