SHGRID(3NCARG)

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

🌸 SHGRID β€” the NCAR GRAPHICS bestie πŸ’…

okay so. sit down, grab a strawberry drink πŸ“, because we're about to talk about SHGRID, a genuine icon from the NCAR GRAPHICS lineup. she interpolates random data in 3-space using a modified Shepard's algorithm. that's the whole vibe. periodt. ✨


✨ NAME ✨

SHGRID β€” interpolate random data in 3-space using a modified Shepard's algorithm

no cap, that's literally what she does and she does it beautifully 🫢


πŸŽ€ SYNOPSIS πŸŽ€

CALL SHGRID (N, X, Y, Z, F, NXO, NYO, NZO, XO, YO, ZO,
            FF, IWK, RWK, IER)

look at that signature. seventeen arguments. she's high maintenance but she's worth it πŸ’–


πŸ‘‘ DESCRIPTION πŸ‘‘

okay bestie, here's the cast of characters. every single one of them matters, so don't skip anybody:

  • N β€” (integer, input) the number of input data points, and she's gotta be N > 9. yes really. nine is the floor. respect it πŸ’€
  • X β€” (real, input) an array holding the X coordinates of your input data points. dimensioned for N.
  • Y β€” (real, input) an array holding the Y coordinates of your input data points. dimensioned for N.
  • Z β€” (real, input) an array holding the Z coordinates of your input data points. dimensioned for N.
  • F β€” (real, input) an array dimensioned for N holding data values. F(I) is a functional value at (X(I),Y(I),Z(I)) for I = 1 to N. she's the moment, she's the data πŸŽ€
  • NXO β€” (integer, input) how many X coordinate values live in the output grid.
  • NYO β€” (integer, input) how many Y coordinate values live in the output grid.
  • NZO β€” (integer, input) how many Z coordinate values live in the output grid.
  • XO β€” (real, input) an array dimensioned for NXO holding the X coordinates of the output surface.
  • YO β€” (real, input) an array dimensioned for NYO holding the Y coordinates of the output surface.
  • ZO β€” (real, input) an array dimensioned for NZO containing the Y coordinates of the output surface.
  • FF β€” (real, output) an array dimensioned for NXO x NYO x NZO holding the calculated function values for the output function. FF(I,J,K) is the calculated functional value at (XO(I), YO(J), ZO(K)) for I=1,NXO and J=1,NYO and K=1,NZO. this is the glow-up result, the finished product, the slay πŸ”₯
  • IRK β€” (integer, input) an integer workspace of length at least 2*N. (she gets called IWK up in the synopsis, iykyk β€” same energy, different spelling, we don't question it πŸ™ˆ)
  • RWK β€” (real, input) a work array dimensioned for 11*N+6.
  • IER β€” (integer, output) an error return value. if IER comes back as 0, then no errors were detected β€” we love a clean run, she ate πŸ’…. if IER is non-zero, then refer to the man page for shgrid_errors for details. go read it, don't ignore it bestie, it's giving important.

🌈 USAGE 🌈

SHGRID is called to interpolate randomly spaced data in 3-space. SHGRID uses a modified Shepard's algorithm to construct an interpolatory surface. that's it, that's the whole job description, and she does it gorgeously 🌸


πŸ¦‹ ACCESS πŸ¦‹

to use SHGRID, load the NCAR Graphics library ngmath. that's the key to the whole thing, no shortcuts, no vibes-based guessing ✨


πŸ’œ SEE ALSO πŸ’œ

  • shgrid_params
  • shseti
  • shgeti
  • shgetnp

and also β€” complete documentation for Shgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/shgrid/shhome.html 🧚

go forth and read, bestie, it's giving well-documented πŸ‘‘


Copyright (C) 2000 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.


legal said what legal said πŸ’– we respect the License Agreement in this house.

okay so that's the whole page, and she's iconic, she's thorough, and she's yours now. this was SHGRID, from the NCAR GRAPHICS collection, landing on your UNIX system back in September 1999 β€” and she's still serving looks. go interpolate something gorgeous. mwah πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from