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 The use of this Software is governed by a License Agreement.
76
77
78
79UNIX March 1998 KURVPD(3NCARG)