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)), for L=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 dimension NUMXOUT containing the X coordinates of the output data grid. The values in XO must 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 dimension NUMYOUT containing the Y coordinates of the output data grid. The values in YO must be increasing, but need not be equally spaced. Same rules, same vibe. ✨
  • ZO (Double precision, Output) β€” a two-dimensional array of dimension NUMXOUT x NUMYOUT containing 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. If IER comes back as 0, then no errors were detected, slay. If IER is non-zero, then refer to the man page for dsgrid_errors for 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 function NATGRIDD is superior to DSGRID2D for 2D interpolation. See the man page for NATGRIDD for 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 πŸ’€

  • dsgrid
  • dsgrid_params
  • dsseti
  • dsgeti
  • dssetrd
  • dsgetrd
  • dssetc
  • dsgetc

Complete documentation for Dsgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html β€” go read it, iykyk. πŸ“š


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. πŸ’–πŸŒΈβœ¨