1CURV1(3NCARG) NCAR GRAPHICS CURV1(3NCARG)
2
3
4
6 CURV1 - does set-up for CURV2.
7
9 CALL CURV1 (N, X, Y, SLP1, SLPN, ISLPSW, YP, TEMP, SIGMA, IER)
10
12 N (integer,input) The number of input data values. (N > 1)
13
14 X (real, input) An array containing the abscissae for the
15 input function.
16
17 Y (real, input) An array containing the functional values of
18 the input data -- (Y(K) is the functional value at X(K) for
19 K=1,N).
20
21 SLP1 (real, input) A user-specified value for the desired slope
22 at X(1). See ISLPSW below if you want to have a value cal‐
23 culated internally.
24
25 SLPN (real, input) A user-specified value for the desired slope
26 at X(N). See ISLPSW below if you want to have a value cal‐
27 culated internally.
28
29 ISLPSW (integer, input) A switch to indicate whether the slopes at
30 the end points should be calculated internally.
31
32 = 0 if SLP1 and SLPN are user-specified.
33 = 1 if SLP1 is user-specified, but SLPN is internally cal‐
34 culated.
35 = 2 if SLPN is user-specified, but SLP1 is internally cal‐
36 culated.
37 = 3 if SLP1 and SLPN are internally calculated.
38
39
40 YP (real, output) Contains values for the second derivative
41 (CURV1 computes these).
42
43 TEMP (real, input) Scratch space.
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
49 IER (integer, output) An error return value. If IER is returned
50 as 0, then no errors were detected.
51
52 = 1 if N is less than 2.
53 = 2 if X values are not strictly increasing.
54
56 To use CURV1, load the NCAR Graphics library ngmath.
57
59 curv2, fitgrid_params.
60
61 Complete documentation for Fitgrid is available at URL
62 http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
63
65 Copyright (C) 2000
66 University Corporation for Atmospheric Research
67
68 This documentation is free software; you can redistribute it and/or
69 modify it under the terms of the GNU General Public License as pub‐
70 lished by the Free Software Foundation; either version 2 of the
71 License, or (at your option) any later version.
72
73 This software is distributed in the hope that it will be useful, but
74 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
75 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
76 Public License for more details.
77
78 You should have received a copy of the GNU General Public License along
79 with this software; if not, write to the Free Software Foundation,
80 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
81
82
83
84
85UNIX March 1998 CURV1(3NCARG)