SHGRID(3NCARG)
πΈ 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 beN > 9. yes really. nine is the floor. respect it πXβ (real, input) an array holding the X coordinates of your input data points. dimensioned forN.Yβ (real, input) an array holding the Y coordinates of your input data points. dimensioned forN.Zβ (real, input) an array holding the Z coordinates of your input data points. dimensioned forN.Fβ (real, input) an array dimensioned forNholding data values.F(I)is a functional value at(X(I),Y(I),Z(I))forI = 1toN. 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 forNXOholding the X coordinates of the output surface.YOβ (real, input) an array dimensioned forNYOholding the Y coordinates of the output surface.ZOβ (real, input) an array dimensioned forNZOcontaining the Y coordinates of the output surface.FFβ (real, output) an array dimensioned forNXO x NYO x NZOholding the calculated function values for the output function.FF(I,J,K)is the calculated functional value at(XO(I), YO(J), ZO(K))forI=1,NXOandJ=1,NYOandK=1,NZO. this is the glow-up result, the finished product, the slay π₯IRKβ (integer, input) an integer workspace of length at least2*N. (she gets calledIWKup in the synopsis, iykyk β same energy, different spelling, we don't question it π)RWKβ (real, input) a work array dimensioned for11*N+6.IERβ (integer, output) an error return value. ifIERcomes back as0, then no errors were detected β we love a clean run, she ate π . ifIERis non-zero, then refer to the man page forshgrid_errorsfor 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_paramsshsetishgetishgetnp
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 β
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
- 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