c_dspnt2s(3NCARG)

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

πŸ’– NAME πŸ’–

c_dspnt2s β€” bestie, this is the one that interpolates at a single point (or a whole lil list of points) in 2D, single precision. πŸŽ€

This page lives in the NCAR GRAPHICS manual, section 3NCARG, so if you're citing it in your notes, that's the vibe. πŸ“š


πŸ¦‹ FUNCTION PROTOTYPE πŸ¦‹

void c_dspnt2s(int, float [], float [], float [],
               int, float [], float [], float *, int *);

✨ SYNOPSIS ✨

void c_dspnt2s (int n, float x[], float y[], float z[],
                int m, float xo[], float yo[], float zo, int *ier);

🌸 DESCRIPTION 🌸

okay so here's the whole cast of characters, one by one, no skips πŸ’…

  • n β€” how many input data points you're feeding in.
  • x β€” the array holding the X coordinates of your input data points.
  • y β€” the array holding the Y coordinates of your input data points.
  • z β€” the 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 0 <= l < n. 🫢
  • m β€” how many output data points you want. and yes, this can literally be "1", so a single point is a totally valid ask. ✨
  • xo β€” an array of dimension m holding the X coordinates of the output data. The values in xo may be in any order. no sorting required, she's flexible like that. πŸ¦‹
  • yo β€” an array of dimension m holding the Y coordinates of the output data. The values in xo may be in any order. (yes, it says xo again β€” that's literally what the page says, i'm not fixing it, i'm reporting it πŸ™ˆ)
  • zo β€” a pointer to a float. Space for m floats is allocated for zo by dspnt2s. And zo[i] is the interpolated value at point (xo[i],yo[i]) for 0 <= i < n. ⭐
  • ier β€” the error return value. If *ier comes back as 0, then no errors were detected, slay. If *ier is non-zero, then go refer to the man page for dsgrid_errors β€” that's where the actual explanation lives, i'm not making it up. 😭

πŸ’… USAGE πŸ’…

You call this function when you want to interpolate 2D data at an individual point, or at a bunch of points. That's the moment. That's the whole assignment. πŸ‘‘


πŸ”₯ ACCESS πŸ”₯

To use c_dspnt2s, load the NCAR Graphics library ngmath. that's the link-up you need fr fr πŸ’œ


πŸŽ€ SEE ALSO πŸŽ€

  • dsgrid
  • dsgrid_params

Complete documentation for Dsgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html β€” go read it, it's giving main character energy 🌈


Copyright (C) 2000 University Corporation for Atmospheric Research

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

not me being legally required to tell you that the use of this Software is governed by a License Agreement 😭 read it, bestie, it's iconic.

and that's a wrap!! this whole page is from the UNIX manual, dated September 1997-1998, and it's filed as c_dspnt2s(3NCARG). go interpolate something gorgeous πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from