1KURV2(3NCARG) NCAR GRAPHICS KURV2(3NCARG)
2
3
4
6 KURV2 - does interpolation for parametric curves
7
9 CALL KURV2 (T, XS, YS, N, X, Y, XP, YP, S, SIGMA)
10
11 The interpolated curve is parameterized by mapping points in the inter‐
12 val [0.,1.] onto the interpolated curve. The resulting curve has a
13 parametric representation both of whose components are splines under
14 tension and functions of the polygonal arc length. The value 0. is
15 mapped onto (X[1],Y[1]) and the value 1. is mapped onto (X[N],Y[N]).
16 KURV1 must be called before calling KURV2.
17
19 T (real, input) A value to be mapped to a point on the curve.
20 The interval [0.,1.] is mapped onto the curve such that 0.
21 is mapped to (X(1),Y(1)) and 1. is mapped to (X(N),Y(N)).
22 Values outside of [0.,1.] result in extrapolation.
23
24 XS (real, oputput) Contains the X coordinate of the interpo‐
25 lated point that T maps to.
26
27 YS (real, oputput) Contains the Y coordinate of the interpo‐
28 lated point that T maps to.
29
30 N (integer, input) The number of input data points. (N > 1)
31
32 X (real, input) An array containing the X values of the input
33 points.
34
35 Y (real, input) An array containing the Y values of the input
36 points. Adjacent pairs of points must be distinct.
37
38 XP (real, input) An array of length N as computed by KURV1.
39
40 YP (real, input) An array of length N as computed by KURV1.
41
42 S (real, input) An array of length N containing the polygonal
43 arc lengths of the curve.
44
45 SIGMA (real, input) Tension factor. Values near zero result in a
46 cubic spline; large values (e.g. 50) result in nearly a
47 polygonal line. A typical value is 1.
48
50 To use KURV2, load the NCAR Graphics library ngmath.
51
53 kurv1, fitgrid_params.
54
55 Complete documentation for Fitgrid is available at URL
56 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
57
59 Copyright (C) 2000
60 University Corporation for Atmospheric Research
61
62 This documentation is free software; you can redistribute it and/or
63 modify it under the terms of the GNU General Public License as pub‐
64 lished by the Free Software Foundation; either version 2 of the
65 License, or (at your option) any later version.
66
67 This software is distributed in the hope that it will be useful, but
68 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
69 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
70 Public License for more details.
71
72 You should have received a copy of the GNU General Public License along
73 with this software; if not, write to the Free Software Foundation,
74 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
75
76
77
78
79UNIX March 1998 KURV2(3NCARG)