1CSA1S(3NCARG) NCAR GRAPHICS CSA1S(3NCARG)
2
3
4
6 CSA1S - cubic spline approximation, simple entry for one-dimensional
7 input
8
10 CALL CSA1S (NI, XI, YI, KNOTS, NO, XO, YO, NWRK, WORK, IER)
11
13 NI (integer,input) The number of input data points. It must be
14 that NI .gt. 3 and, depending on the size of KNOTS below,
15 NI may have to be larger.
16
17 XI (real, input) An array dimensioned for NI containing the X
18 coordinates of the input data points.
19
20 YI (real, input) An array dimensioned for NI containing func‐
21 tion values at the input XI values, that is, YI(L) is the
22 value of the input function at XI(L) for L=1,NI.
23
24 KNOTS (integer, input) The number of knots to be used in con‐
25 structing the approximation spline. KNOTS must be at least
26 4. The larger the value for KNOTS, the closer the approxi‐
27 mated curve will come to passing through the input function
28 values.
29
30 NO (integer, input) The number of values to be calculated for
31 the output curve.
32
33 XO (real, input) An array dimensioned for NO containing the X
34 coordinates of the output curve.
35
36 YO (real, output) An array dimensioned for NO containing the
37 calculated function values for the output curve.
38
39 NWRK (integer, input) The size of the WORK array. NWRK must be
40 at least KNOTS*(KNOTS+3).
41
42 WORK (real, input) A work array dimensioned for NWRK.
43
44 IER (integer, output) An error return value. If IER is
45 returned as 0, then no errors were detected. If IER is non-
46 zero, then refer to the man page for csagrid_errors for
47 details.
48
50 CSA1S is called to find an approximating cubic spline for one-dimen‐
51 sional input data. If you want to weight the input data values, calcu‐
52 late derivatives, or handle data sparse areas specially, then you will
53 need to use CSA1XS.
54
56 To use CSA1S, load the NCAR Graphics library ngmath.
57
59 csagrid, csa1xs, csa1ls, csa1lxs
60
61 Complete documentation for Csagrid is available at URL
62 http://ngwww.ucar.edu/ngdoc/ng/ngmath/csagrid/csahome.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 January 1999 CSA1S(3NCARG)