1KURVPD(3NCARG) NCAR GRAPHICS KURVPD(3NCARG)
2
3
4
6 KURVPD - nterpolation and derivatives for closed parametric curves
7
9 CALL KURVPD (T, XS, YS, XST, YST, XSTT, YSTT, N, X, Y, XP, YP, S,
10 SIGMA)
11
12 This subroutine behaves like KURVP2 except that in addition it returns
13 the first and second derivatives of the component functions in the
14 parameterization. The interval [0.,1.] maps onto a closed curve in the
15 plane. The resulting curve has a parametric representation both of
16 whose components are splines under tension and functions of the polygo‐
17 nal arc length. KURVP1 must be called before calling KURVPD.
18
20 T (real,input) A value to be mapped to a point on the curve.
21 The interval [0.,1.] is mapped onto the curve such that 0.
22 is mapped to (X(1),Y(1)) and 1. is mapped to (X(1),Y(1)).
23 Any interval [TT,TT+1.] maps onto the entire closed curve.
24
25 XS (real,output) Contains the X coordinate of the point that T
26 maps to.
27
28 YS (real,output) Contains the Y coordinate of the point that T
29 maps to.
30
31 XST (real,output) Contains the first derivatives of the X com‐
32 ponent with respect to T.
33
34 YST (real,output) Contains the first derivatives of the Y com‐
35 ponent with respect to T.
36
37 XSTT (real,output) Contains the second derivatives of the X com‐
38 ponent with respect to T.
39
40 YSTT (real,output) Contains the second derivatives of the X com‐
41 ponent with respect to T.
42
43 N (integer,input) The number of input data points. (N > 1)
44
45 X (real,input) An array containing the X values of the input
46 points.
47
48 Y (real,input) An array containing the Y values of the input
49 points. Adjacent pairs of points must be distinct.
50
51 XP (real,input) An array of length N as computed by KURVP1.
52
53 YP (real,input) An array of length N as computed by KURVP1.
54
55 S (real,input) An array of length N containing the polygonal
56 arc lengths of the curve, as computed by KURVP1.
57
58 SIGMA (real,input) Tension factor. Values near zero result in a
59 cubic spline; large values (e.g. 50) result in nearly a
60 polygonal line. A typical value is 1.
61
63 To use KURVPD, load the NCAR Graphics library ngmath.
64
66 kurvp1,kurvp2, fitgrid_params.
67
68 Complete documentation for Fitgrid is available at URL
69 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
70
72 Copyright (C) 2000
73 University Corporation for Atmospheric Research
74
75 This documentation is free software; you can redistribute it and/or
76 modify it under the terms of the GNU General Public License as pub‐
77 lished by the Free Software Foundation; either version 2 of the
78 License, or (at your option) any later version.
79
80 This software is distributed in the hope that it will be useful, but
81 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
82 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
83 Public License for more details.
84
85 You should have received a copy of the GNU General Public License along
86 with this software; if not, write to the Free Software Foundation,
87 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
88
89
90
91
92UNIX March 1998 KURVPD(3NCARG)