1CSA1S(3NCARG)                    NCAR GRAPHICS                   CSA1S(3NCARG)
2
3
4

NAME

6       CSA1S  -  cubic  spline approximation, simple entry for one-dimensional
7       input
8

SYNOPSIS

10       CALL CSA1S (NI, XI, YI, KNOTS, NO, XO, YO, NWRK, WORK, IER)
11

DESCRIPTION

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

USAGE

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

ACCESS

56       To use CSA1S, load the NCAR Graphics library ngmath.
57

SEE ALSO

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       The use of this Software is governed by a License Agreement.
69
70
71
72UNIX                             January 1999                    CSA1S(3NCARG)
Impressum