1CURVP1(3NCARG) NCAR GRAPHICS CURVP1(3NCARG)
2
3
4
6 CURVP1 - calculate values for CURVP2 usage.
7
9 CALL CURVP1 (N, X, Y, P, YP, TEMP, SIGMA, IER)
10
11 This subroutine calculates certain values that are used by CURVP2 in
12 order to compute an interpolatory spline under tension through a
13 sequence of functional values for a periodic function. The actual com‐
14 putation of the interpolated values must be done using CURVP2 .
15
17 N (integer, input) The number of input data values. (N > 1)
18
19 X (real, input) An array containing the abscissae for the
20 input function.
21
22 Y (real, input) An array containing the functional values of
23 the input function -- Y(K) is the functional value at X(K)
24 for K=1,N.
25
26 P (real, input) The period of the function. P must be greater
27 than X(N)-X(1).
28
29 YP (real, output) Contains values for the second derivative
30 (these are calculated by CURVP1).
31
32 TEMP (real, input) Scratch space.
33
34 SIGMA (integer, input) Tension factor. Values near zero result in
35 a cubic spline; large values (e.g. 50) result in nearly a
36 polygonal line. A typical value is 1.
37
38 IER (integer, output) An error return value. If IER is returned
39 as 0, then no errors were detected.
40
41 = 1 if N is less than 2.
42 = 2 if P is less than or equal to X(N)-X(1).
43 = 3 if the X values are not strictly increasing.
44
46 To use CURVP1, load the NCAR Graphics library ngmath.
47
49 curvp2, fitgrid_params.
50
51 Complete documentation for Fitgrid is available at URL
52 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
53
55 Copyright (C) 2000
56 University Corporation for Atmospheric Research
57
58 The use of this Software is governed by a License Agreement.
59
60
61
62UNIX March 1998 CURVP1(3NCARG)