DSGRID2D(3NCARG)
π DSGRID2D β the double precision era π
okay bestie, so this is a page from the NCAR GRAPHICS manual, and today's main character is DSGRID2D. It's the double precision Fortran entry point for interpolation from 2D random data onto an output grid. Random scattered data in, tidy little grid out. It's giving glow-up. β¨
β¨ NAME β¨
DSGRID2D β double precision Fortran entry for interpolation from 2D random data to an output grid. π
πΈ SYNOPSIS πΈ
CALL DSGRID2D (NPNTS, X, Y, Z, NUMXOUT, NUMYOUT, XO, YO, ZO, IER)
π DESCRIPTION π
Here's the whole cast, one by one, no skips, no cuts:
NPNTS(Integer, Input) β the number of input data points. Like, how many lil data besties are we working with.X(Double precision, Input) β an array holding the X coordinates of the input data points.Y(Double precision, Input) β an array holding the Y coordinates of the input data points.Z(Double precision, Input) β an array holding the functional values of the input data points. Translation:Z(L)is the value of the input function at coordinate(X(L),Y(L)), forL=1,NPNTS. π«Ά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(Double precision, Input) β an array of dimensionNUMXOUTcontaining the X coordinates of the output data grid. The values inXOmust be increasing, but they need not be equally spaced. So like, ascending only, but the spacing can do whatever it wants. π«YO(Double precision, Input) β an array of dimensionNUMYOUTcontaining the Y coordinates of the output data grid. The values inYOmust be increasing, but need not be equally spaced. Same rules, same vibe. β¨ZO(Double precision, Output) β a two-dimensional array of dimensionNUMXOUT x NUMYOUTcontaining the interpolated functional values.ZO(I,J)is the interpolated value at grid point(XO(I),YO(J)). This is the payoff, the moment, the reveal. πIER(Integer, Output) β an error return value. IfIERcomes back as0, then no errors were detected, slay. IfIERis non-zero, then refer to the man page fordsgrid_errorsfor details. π
π₯ USAGE π₯
DSGRID2D is the double precision gridding function for 2D data in the Dsgrid package. The behavior of DSGRID2D is controlled by values set for the various parameters described in dsgrid_params. Values for these parameters can be set using the subroutines DSSETI, DSSETRD, and DSSETC. So basically, you set the vibes first, then you grid. π§
β οΈ real talk though: in almost all cases the ngmath functionNATGRIDDis superior toDSGRID2Dfor 2D interpolation. See the man page forNATGRIDDfor details. Not me telling you your fave is lowkey outdated, but... yeah. π
π ACCESS π
To use DSGRID2D, load the NCAR Graphics library ngmath. That's the whole requirement, periodt. π
π SEE ALSO π
dsgriddsgrid_paramsdssetidsgetidssetrddsgetrddssetcdsgetc
Complete documentation for Dsgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html β go read it, iykyk. π
π COPYRIGHT π
Copyright (C) 2000 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
okay that's the whole page, bestie, you ate. this was DSGRID2D(3NCARG) from the NCAR GRAPHICS manual, dated September 1997-1998, and the source/version on the original footer was the plain old UNIX tag. no cap. ππΈβ¨
π¦ 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