CSVORO(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’« CSVORO πŸ’«

okay bestie so this is the CSVORO page from the NCAR GRAPHICS manual (that's the 3NCARG section, iykyk) and it's literally all about ✨ Voronoi polygons ✨ for data chillin' on a sphere. no cap, it's giving geometry main character energy πŸ¦‹


🌸 NAME 🌸

CSVORO β€” calculate Voronoi polygons for data on a sphere. periodt πŸ’…


✨ SYNOPSIS ✨

CALL CSVORO (NPTS, RLATI, RLONI, NI, NF, IWK, RWK,
             NC, RLATO, RLONO, RC,
             NCA, NUMV, NV, IER)

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the whole cast of characters, one by one, no skips 🫢

  • NPTS (integer, input) β€” how many input data points you got (NPTS > 3, bestie, that's the rule).
  • RLATI (real, input) β€” an array holding the latitudes of the input data, in degrees. ⚠️ the first three points must not be collinear, meaning they can't all lie on a common great circle. that's not a vibe, that's a requirement.
  • RLONI (real, input) β€” an array holding the longitudes of the input data, also in degrees.
  • NI (integer, input) β€” the index of the input coordinate you want the Voronoi polygon for (1 .LE. NI .LE. NPTS).
  • NF (integer, input) β€” a flag telling you whether this is the first call to CSVORO for this dataset to grab Voronoi polygons (1=yes, 0=no). lowkey the glow-up here is that calls after the first one for a given dataset are much faster than the first call. πŸ”₯
  • IWK (integer, input) β€” integer work space, dimensioned for 27*NPTS.
  • RWK (double precision, input) β€” a work space dimensioned for 9*NPTS. πŸ‘€ heads up: RWK must be typed DOUBLE PRECISION. do not play with it.
  • NC (integer, input) β€” the max size of the output arrays RLATO, RLONO, and RC. NC should be 2*NPTS.
  • RLATO (real, output) β€” the latitudes for the vertices of the Voronoi polygons. these are circumcenters of circles passing through the Delaunay triangles. if a coordinate is a boundary point, then the circle may pass through certain "pseudo points" that have been added to the original dataset in order to complete the Voronoi polygon. (yes, pseudo points. they're doing their little side quest. πŸ’€)
  • RLONO (real, output) β€” the longitudes for the vertices of the Voronoi polygons.
  • RC (real, output) β€” an array with the circumradii (arc lengths in degrees of the angle between a circumcenter and its associated triangle vertices).
  • NCA (integer, output) β€” the actual number of circumcenters returned in RLATO and RLONO. this number can be bigger than NPTS if your input dataset has boundary points, since certain "pseudo points" may have been added to the original dataset to complete the Voronoi polygon set. iconic behavior honestly.
  • NUMV (integer, output) β€” the number of vertices in the Voronoi polygon enclosing the coordinate (RLATI(NI),RLONI(NI)).
  • NV (integer, output) β€” an array (dimensioned for NPTS) containing NUMV indices for the Voronoi polygon enclosing the coordinate (RLATI(NI),RLONI(NI)). the indices returned here refer to the coordinates returned in RLATO, RLONO, and RC. for example, if the integer J is an element of the NV array, then (RLATO(J),RLONO(J)) is a vertex of the Voronoi polygon enclosing (RLATI(NI),RLONI(NI)). and the indices in NV list out the vertices of the Voronoi polygon in counter-clockwise order. ✨ (they understood the assignment.)
  • IER (integer, output) β€” an error return value. if IER comes back as 0, then no errors were detected. if IER is non-zero, then go look at the man page for cssgrid_errors for the deets. πŸ™ˆ

πŸ¦‹ USAGE πŸ¦‹

call CSVORO when you wanna determine the Voronoi polygons for data randomly positioned on a sphere. every single call to CSVORO calculates the vertices for the Voronoi polygon surrounding one specified input point. one call, one point, slay. πŸ’…


🌈 ACCESS 🌈

to use CSVORO, load the NCAR Graphics library ngmath.


πŸ‘‘ SEE ALSO πŸ‘‘

  • css_overview
  • csstri
  • cssgrid

complete documentation for Cssgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html


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's from the UNIX manual, dated May 2000, and it lives at CSVORO(3NCARG) β€” go forth and tessellate that sphere, you absolute legend 🫢✨🌸

πŸ“¦ where this page comes from