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

NAME

6       CSSTRI - calculates a Delaunay triangulation for data on a sphere
7

SYNOPSIS

9       CALL CSSTRI (N, RLAT, RLON, NT, NTRI, IWK, RWK, IER)
10

DESCRIPTION

12       N           (integer,input) The number of input data points (N > 2).
13
14       RLAT        (real,  input)  An  array  containing  the latitudes of the
15                   input data, expressed in degrees.  The first  three  points
16                   must not be collinear (lie on a common great circle).
17
18       RLON        (real,  input)  An  array  containing the longitudes of the
19                   input data, expressed in degrees.
20
21       NT          (integer, output) The number of triangles in the triangula‐
22                   tion,  unless IER .NE. 0, in which case NT = 0. Where NB is
23                   the number of boundary points on the  convex  hull  of  the
24                   data,  if  NB .GE. 3, then NT = 2N-NB-2, otherwise NT=2N-4.
25                   The input data are considered to be bounded if they all lie
26                   in  one  hemisphere.   Dimensioning  NT for 2*N will always
27                   work.
28
29       NTRI        (integer, output) A two-dimensional  integer  array  dimen‐
30                   sioned  for  3  x NT where NT is the number of triangles in
31                   the triangulation (NT is at most 2*N).  NTRI  contains  the
32                   triangulation  data.  The vertices of the Kth triangle are:
33                   (PLAT(NTRI((1,K)),PLON(NTRI(1,K)),
34                   (PLAT(NTRI((2,K)),PLON(NTRI(2,K)),
35                   (PLAT(NTRI((3,K)),PLON(NTRI(3,K))
36
37       IWK         (integer, input) An integer workspace of length 27*N.
38
39       RWK         (double precision, input)  A  work  array  dimensioned  for
40                   13*N.   Note that this work array must be typed DOUBLE PRE‐
41                   CISION.
42
43       IER         (integer,  output)  An  error  return  value.   If  IER  is
44                   returned as 0, then no errors were detected. If IER is non-
45                   zero, then refer to the man  page  for  cssgrid_errors  for
46                   details.
47

USAGE

49       CSSTRI  is  called  to  find  a Delaunay triangulation of data randomly
50       positioned on the surface of a sphere.
51

ACCESS

53       To use CSSTRI, load the NCAR Graphics library ngmath.
54

SEE ALSO

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