1KURVD(3NCARG) NCAR GRAPHICS KURVD(3NCARG)
2
3
4
6 KURVD - interpolation and derivatives for parametric curves
7
9 CALL KURVD (T, XS, YS, XST, YST, XSTT, YSTT, N, X, Y, XP, YP, S, SIGMA)
10
11 This subroutine behaves like KURV2 except that in addition it returns
12 the first and second derivatives of the component functions in the
13 parameterization. The interval [0.,1.] maps onto a curve in the plane.
14 The resulting curve has a parametric representation both of whose com‐
15 ponents are splines under tension and functions of the polygonal arc
16 length. KURV1 must be called before calling KURVD.
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,output) Contains the X coordinate of the point that T
25 maps to.
26
27 YS (real,output) Contains the Y coordinate of the point that T
28 maps to.
29
30 XST (real,output) Contains the first derivatives of the X com‐
31 ponent with respect to T.
32
33 YST (real,output) Contains the first derivatives of the Y com‐
34 ponent with respect to T.
35
36 XSTT (real,output) Contains the second derivatives of the X com‐
37 ponent with respect to T.
38
39 YSTT (real,output) Contains the second derivatives of the X com‐
40 ponent with respect to T.
41
42 N (integer,input) The number of input data points. (N > 1)
43
44 X (real,input) An array containing the X values of the input
45 points.
46
47 Y (real,input) An array containing the Y values of the input
48 points. Adjacent pairs of points must be distinct.
49
50 XP (real,input) An array of length N as computed by KURV1.
51
52 YP (real,input) An array of length N as computed by KURV1.
53
54 S (real,input) An array of length N containing the polygonal
55 arc lengths of the curve, as computed by KURV1.
56
57 SIGMA (real,input) Tension factor. Values near zero result in a
58 cubic spline; large values (e.g. 50) result in nearly a
59 polygonal line. A typical value is 1.
60
62 To use KURVD, load the NCAR Graphics library ngmath.
63
65 kurv1,kurv2, fitgrid_params.
66
67 Complete documentation for Fitgrid is available at URL
68 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
69
71 Copyright (C) 2000
72 University Corporation for Atmospheric Research
73
74 The use of this Software is governed by a License Agreement.
75
76
77
78UNIX March 1998 KURVD(3NCARG)