DSGRID3S(3NCARG)
π DSGRID3S β single precision Fortran entry for 3D gridding π
okay bestie, sit down, hydrate, because we're about to talk about DSGRID3S, a lil Fortran subroutine from the NCAR GRAPHICS manual (that's section 3NCARG, iykyk). she's a single-precision queen and she does 3D gridding. no cap.
β¨ NAME β¨
DSGRID3S β the single precision Fortran entry for 3D gridding. that's the whole vibe. that's her whole thing. π
β¨ SYNOPSIS β¨
CALL DSGRID3S (NPNTS, X, Y, Z, U, NUMXOUT, NUMYOUT, NUMZOUT, XO, YO, ZO,
UO, IER)
like yes she takes a LOT of arguments. she's high maintenance but she's worth it. π
β¨ DESCRIPTION β¨
okay so here's the cast of characters, one by one, no skipping, we respect all of them:
NPNTS(Integer, Input) β how many input data points we're working with. the headcount. the guest list. πX(Real, Input) β an array holding the X coordinates of the input data points.Y(Real, Input) β an array holding the Y coordinates of the input data points.Z(Real, Input) β an array holding the Z coordinates of the input data points. yes bestie, three dimensions, we're living in a 3D world and she eats every time. π¦U(Real, Input) β an array holding the functional values of the input data points. so like,U(L)is the value of the input function at coordinate(X(L),Y(L),Z(L)), forL=1,NPNTS. she's mapping points to values. that's the whole plot of the movie. πΈNUMXOUT(Integer, Input) β how many X values live in the output grid.NUMYOUT(Integer, Input) β how many Y values live in the output grid.NUMZOUT(Integer, Input) β how many Z values live in the output grid. (three of them. because 3D. she's consistent and we love that for her.) πXO(Real, Input) β an array of dimensionNUMXOUTholding the X coordinates of the output data grid. β οΈ the values inXOmust be increasing, but they do NOT need to be equally spaced. she's flexible like that, but she does have boundaries.YO(Real, Input) β an array of dimensionNUMYOUTholding the Y coordinates of the output data grid. β οΈ values inYOmust be increasing, but again, not necessarily equally spaced. bestie said monotonic or nothing. πZO(Real, Input) β an array of dimensionNUMZOUTholding the Z coordinates of the output data grid. β οΈ values inZOmust be increasing, and once more, no equal-spacing requirement. the grid is giving "curated but ordered". β¨UO(Real, Output) β a three-dimensional array dimensioned asUO(NUMXOUT,NUMYOUT,NUMZOUT)holding the interpolated functional values. soUO(I,J,K)is the interpolated value at grid point(XO(I),YO(J),ZO(K)). this is the moment. the main character moment. the output. π₯IER(Integer, Output) β the error return value. ifIERcomes back as0, then no errors were detected, slay. ifIERis non-zero, then go read the man page fordsgrid_errorsfor the details. she's not gonna explain herself in public, okay? π
β¨ USAGE β¨
DSGRID3S is the single precision gridding function in the Dsgrid package. periodt.
the behavior of DSGRID3S is controlled by values set for the various parameters described over in dsgrid_params. and how do you set those values, you ask? with the subroutines DSSETI, DSSETR, and DSSETC. that's the trio. that's the friend group. π«Ά
β¨ ACCESS β¨
to use DSGRID3S, you gotta load the NCAR Graphics library ngmath. that's the door, that's the key, that's the whole entry requirement. π
β¨ SEE ALSO β¨
dsgriddsgrid_paramsdssetidsgetidssetrdsgetrdssetcdsgetc
and if you want the FULL lore, the complete documentation for Dsgrid is available at this URL:
http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html
go read it bestie, it's giving β¨comprehensiveβ¨.
β¨ COPYRIGHT β¨
Copyright (C) 2000
University Corporation for Atmospheric Research
the use of this Software is governed by a License Agreement. read it, respect it, we don't play about licenses. π
ok that's the whole page, you ate that. π
and that's a wrap on the NCAR GRAPHICS DSGRID3S(3NCARG) era β written down as UNIX, dated September 1997-1998, and forever iconic. bye bestie, go grid something in 3D πβ¨π
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms