DSPNT2S(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– DSPNT2S β€” the NCAR Graphics girlies' guide to interpolating at one (or a few) points in 2D, single precision edition ✨

okay so bestie. you've got a pile of scattered data points and you wanna know what the vibe is at one specific spot. that's literally this. it's DSPNT2S, it lives in the 3NCARG manual, it's a Fortran-callable NCAR Graphics subroutine, and it does single-precision 2D interpolation at individual points. no cap. πŸŽ€


✨ SYNOPSIS ✨

CALL DSPNT2S (N, X, Y, Z, M, XO, YO, ZO, IER)

that's the whole summoning ritual. nine arguments. she's not complicated, she's just precise. πŸ’…


🌸 DESCRIPTION 🌸

okay so here's the tea on every single argument, and yes we're doing all of them, because none of them are skippable:

  • N β€” (Integer, Input) β€” the number of input data points. how many lil data babies you're feeding in. πŸ”₯
  • X β€” (Real, Input) β€” an array holding the X coordinates of your input data points. all the x's, lined up.
  • Y β€” (Real, Input) β€” an array holding the Y coordinates of your input data points. all the y's, likewise.
  • Z β€” (Real, Input) β€” an array of the functional values of your input data points. like, Z(L) is the value of the input function at coordinate (X(L),Y(L)), for L=1,N. so point number L has its value sitting right there in Z(L). it's giving organized. πŸ‘‘
  • M β€” (Integer, Input) β€” the number of output data points. and yes bestie, this may be "1". one singular point is a completely valid lifestyle choice. πŸ¦‹
  • XO β€” (Real, Input) β€” an array of dimension M with the X coordinates of the output data. and here's the cute part: the values in XO may be in any order. she does not care. she is unbothered. ✨
  • YO β€” (Real, Input) β€” an array of dimension M with the Y coordinates of the output data. same deal: the values in YO may be in any order. chaos accepted, queen. 🌈
  • ZO β€” (Real, Output) β€” an array of dimension M holding the interpolated values. so ZO(I) is the interpolated value at point (XO(I),YO(I)) for I=1,M. this is the whole reason we're here. this is the main character. πŸ’–
  • IER β€” (Integer, Output) β€” the error return value, aka the vibe check. if IER comes back as 0, then no errors were detected, we ate, everything's slay. if IER is non-zero, then go refer to the man page for dsgrid_errors for the details. 🫢

πŸ’« USAGE πŸ’«

you call this subroutine when you want to interpolate at an individual point or points. that's it, that's the moment. one point, several points, she's ready. πŸ’œ


πŸŽ€ ACCESS πŸŽ€

to use DSPNT2S, load the NCAR Graphics library ngmath. that's the one. don't forget it or you'll be sitting there like 😭 wondering why nothing links.


πŸ¦‹ SEE ALSO πŸ¦‹

  • dsgrid
  • dsgrid_params

also, complete documentation for Dsgrid is available at URL:

http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html

go read it, it's iconic. πŸ“š


Copyright (C) 2000 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

like, for real, it's legally binding. not me being dramatic, that's literally what it says. ⚠️

okay bestie that's the whole page, every flag and every fact intact, no crumbs left. this one's from the UNIX manual, dated September 1997-1998, sourced from DSPNT2S(3NCARG) in NCAR GRAPHICS β€” and yes she's been serving since the 90s and she still eats. πŸ’…βœ¨ bye love u, go interpolate responsibly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from