CSSTRI(3NCARG)
π CSSTRI β it's giving Delaunay triangulation, but make it spherical π
okay so bestie, welcome to the NCAR GRAPHICS manual page for CSSTRI, living in section 3NCARG of your friendly neighbourhood Unix man pages. this one is a Fortran-callable routine and it is literally the girl who figures out a Delaunay triangulation for data scattered on a sphere. no cap. β¨
π¦ NAME π¦
CSSTRI β calculates a Delaunay triangulation for data on a sphere.
πΈ SYNOPSIS πΈ
CALL CSSTRI (N, RLAT, RLON, NT, NTRI, IWK, RWK, IER)
β¨ DESCRIPTION β¨
here's the cast of characters, and every single one of them matters, okay? π«Ά
Nβ (integer, input) the number of input data points. and it must beN > 2, periodt. πRLATβ (real, input) an array holding the latitudes of the input data, in degrees. β οΈ important: the first three points must not be collinear (meaning they can't all lie on a common great circle). do not test her on this one.RLONβ (real, input) an array holding the longitudes of the input data, expressed in degrees.NTβ (integer, output) the number of triangles in the triangulation β unlessIER .NE. 0, in which caseNT = 0. so letNBbe the number of boundary points on the convex hull of the data: ifNB .GE. 3, thenNT = 2N-NB-2, otherwiseNT=2N-4. the input data are considered to be bounded if they all lie in one hemisphere. and bestie, dimensioningNTfor2*Nwill always work. always. slay. πNTRIβ (integer, output) a two-dimensional integer array dimensioned for3 x NT, whereNTis the number of triangles in the triangulation (NTis at most2*N).NTRIcontains the triangulation data. the vertices of the Kth triangle are:
(PLAT(NTRI((1,K)),PLON(NTRI(1,K)),
(PLAT(NTRI((2,K)),PLON(NTRI(2,K)),
(PLAT(NTRI((3,K)),PLON(NTRI(3,K))
IWKβ (integer, input) an integer workspace of length27*N.RWKβ (double precision, input) a work array dimensioned for13*N. π¨ note that this work array must be typedDOUBLE PRECISION. like, that's not a suggestion, that's the vibe check.IERβ (integer, output) an error return value. ifIERcomes back as0, then no errors were detected β iconic behaviour. ifIERis non-zero, then go refer to the man page forcssgrid_errorsfor details. π
π USAGE π
CSSTRI is called to find a Delaunay triangulation of data randomly positioned on the surface of a sphere. πβ¨
π ACCESS π
to use CSSTRI, load the NCAR Graphics library ngmath. that's the whole assignment.
π SEE ALSO π
css_overviewcssgridcsvoro
complete documentation for Cssgrid is available at URL
http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html
π COPYRIGHT π
Copyright (C) 2000
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
and that's the whole page, bestie π¦π this one came from the UNIX manual, dated May 2000, filed under CSSTRI(3NCARG) β go forth and triangulate responsibly, mwah π
πΈ
π¦ where this page comes from
- epel 9: ncl-devel 6.6.2-59.el9 Β· LicenseRef-Callaway-BSD
- fedora 43: ncl-devel 6.6.2-58.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ncl-devel 6.6.2-62.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms