DSGRID2S(3NCARG)
β¨ NAME β¨
DSGRID2S β the primary single precision Fortran entry for 2D gridding, bestie π
So this is the one in the NCAR Graphics manual (3NCARG), and it's the main character of the Dsgrid gridding situation. Periodt.
π SYNOPSIS π
CALL DSGRID2S (NPNTS, X, Y, Z, NUMXOUT, NUMYOUT, XO, YO, ZO, IER)
That's the whole vibe. Ten arguments, no notes. π
π¦ DESCRIPTION π¦
Okay so let's go through every single one of these, because every single one matters:
NPNTS(Integer, Input) β the number of input data points. How many points you're bringing to the party. π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 functional values of the input data points. Basically,Z(L)is the value of the input function at coordinate(X(L),Y(L)), forL=1,NPNTS. So like, the actual data data. πNUMXOUT(Integer, Input) β the number of X values in the output grid.NUMYOUT(Integer, Input) β the number of Y values in the output grid.XO(Real, Input) β an array of dimensionNUMXOUTholding the X coordinates of the output data grid. The values inXOmust be increasing, but need not be equally spaced. So ascending, okay? Not necessarily evenly spaced, but ascending. Don't play with it. πYO(Real, Input) β an array of dimensionNUMYOUTholding the Y coordinates of the output data grid. Same rules, same energy: the values inYOmust be increasing, but need not be equally spaced.ZO(Real, Output) β a two-dimensional array of dimensionNUMXOUT x NUMYOUTholding the interpolated functional values.ZO(I,J)is the interpolated value at grid point(XO(I),YO(J)). This is where the results show up, and they ate. π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. Not me sending you to another man page but like, go read it. π
π USAGE π
DSGRID2S is the single precision gridding function for 2D data in the Dsgrid package. Its behavior is controlled by the values you set for the various parameters described over in dsgrid_params. And how do you set those values? With the subroutines DSSETI, DSSETR, and DSSETC. That's the whole control panel, bestie. β¨
Important heads-up: in almost all cases the ngmath functionNATGRIDSis superior toDSGRID2Sfor 2D interpolation. Like, genuinely. See the man page forNATGRIDSfor details. π
π ACCESS π
To use DSGRID2S, load the NCAR Graphics library ngmath. That's it, that's the access. π«Ά
π SEE ALSO π
dsgriddsgrid_paramsdssetidsgetidssetrdsgetrdssetcdsgetc
Complete documentation for Dsgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.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, no cap πβ¨π
This was the DSGRID2S(3NCARG) page from the NCAR GRAPHICS manual, in the UNIX section β dated September 1997-1998. Love that for it. Stay interpolating, bestie π¦π
π
π¦ 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