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

NAME

6       KURVP1 - calculate values for KURVP2 usage
7

SYNOPSIS

9       CALL KURVP1 (N, X, Y, XP, YP, TEMP, S, SIGMA, IER)
10
11       This  subroutine  calculates  certain values that are used by KURVP2 in
12       order to compute  an  interpolatory  spline  under  tension  through  a
13       sequence  of  points  in the plane that form a closed curve. The actual
14       computation of the interpolated values must be done using KURVP2 .
15

DESCRIPTION

17       N           (integer,input) The number of input data points. (N > 1)
18
19       X           (real,input) An  array  containing  the  X  values  of  the
20                   points.
21
22       Y           (real,input)  An  array  containing  the  Y  values  of the
23                   points. Adjacent pairs of points must be distinct.
24
25       XP          (real,output) An array of length N.
26
27       YP          (real,output) An array of length N.
28
29       TEMP        (real,input) Scratch space.
30
31       S           (real,output) An array of length N (this will  be  used  to
32                   pass to KURVP2).
33
34       SIGMA       (real,input)  Tension  factor. Values near zero result in a
35                   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 a pair of adjacent points coincide.
43

ACCESS

45       To use KURVP1, load the NCAR Graphics library ngmath.
46

SEE ALSO

48       kurvp2, fitgrid_params.
49
50       Complete documentation for Fitgrid is available at URL
51       http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
52
54       Copyright (C) 2000
55       University Corporation for Atmospheric Research
56
57       This documentation is free software; you  can  redistribute  it  and/or
58       modify  it  under  the  terms of the GNU General Public License as pub‐
59       lished by the  Free  Software  Foundation;  either  version  2  of  the
60       License, or (at your option) any later version.
61
62       This  software  is  distributed in the hope that it will be useful, but
63       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
64       CHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
65       Public License for more details.
66
67       You should have received a copy of the GNU General Public License along
68       with  this  software;  if  not,  write to the Free Software Foundation,
69       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
70
71
72
73
74UNIX                              March 1998                    KURVP1(3NCARG)
Impressum