c_dspnt2d(3NCARG)

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

πŸ’– NAME πŸ’–

c_dspnt2d β€” the girl who interpolates at a single point (or a whole lil squad of points) in 2D, in single precision ✨


🧚 FUNCTION PROTOTYPE 🧚

void c_dspnt2d(int, double [], double [], double [],
               int, double [], double [], double *, int *);

🌸 SYNOPSIS 🌸

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

✨ DESCRIPTION ✨

okay bestie, here's the cast of characters πŸ‘‘

  • n β€” the number of input data points. like, how many lil guys you're feeding her.
  • x β€” an array holding the X coordinates of your input data points.
  • y β€” an array holding the Y coordinates of your input data points.
  • z β€” an array holding the functional values of the input data points. so basically z[l] is the value of the input function at coordinate (x[l],y[l]), for 0 <= l < n. periodt πŸ’…
  • m β€” the number of output data points (and yes, this may be "1" β€” she can absolutely serve a party of one πŸ₯³).
  • xo β€” an array of dimension m holding the X coordinates of the output data. the values in xo may be in any order. no cap, any order, she does not care 🌈
  • yo β€” an array of dimension m holding the Y coordinates of the output data. (the original really does say the values in xo may be in any order here too β€” not me noticing that 😭 just relaying the facts fr fr)
  • zo β€” a pointer to a double. space for m doubles gets allocated for zo by dspnt2d. and zo[i] is the interpolated value at point (xo[i],yo[i]) for 0 <= i < n. (yep, it says n right there in the source β€” we are reporting, not editing 🫢)
  • ier β€” the error return value. if *ier comes back as 0, then no errors were detected, we love a clean run ✨. if *ier is non-zero, then go refer to the man page for dsgrid_errors β€” that's where the tea is β˜•

πŸŽ€ USAGE πŸŽ€

you call this function when you want to interpolate 2D data at an individual point, or at a bunch of points. lowkey iconic that it handles both πŸ’–


🌟 ACCESS 🌟

to use c_dspnt2d, load the NCAR Graphics library ngmath. that's the whole vibe check βœ…


πŸ¦‹ SEE ALSO πŸ¦‹

  • dsgrid
  • dsgrid_params

Complete documentation for Dsgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html


Copyright (C) 2000 University Corporation for Atmospheric Research

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


bestie this is c_dspnt2d from the 3NCARG manual, the NCAR GRAPHICS collection, dated September 1997-1998 on a UNIX system β€” and that's the whole page, go interpolate something gorgeous πŸ’…πŸ’–βœ¨
πŸ“¦ where this page comes from