c_dspnt2d(3NCARG)
π 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 basicallyz[l]is the value of the input function at coordinate(x[l],y[l]), for0 <= 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 dimensionmholding the X coordinates of the output data. the values inxomay be in any order. no cap, any order, she does not care πyoβ an array of dimensionmholding the Y coordinates of the output data. (the original really does say the values inxomay be in any order here too β not me noticing that π just relaying the facts fr fr)zoβ a pointer to adouble. space formdoubles gets allocated forzobydspnt2d. andzo[i]is the interpolated value at point(xo[i],yo[i])for0 <= i < n. (yep, it saysnright there in the source β we are reporting, not editing π«Ά)ierβ the error return value. if*iercomes back as0, then no errors were detected, we love a clean run β¨. if*ieris non-zero, then go refer to the man page fordsgrid_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 π¦
dsgriddsgrid_params
Complete documentation for Dsgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/dsgrid/dshome.html
π COPYRIGHT π
Copyright (C) 2000 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
bestie this isc_dspnt2dfrom the3NCARGmanual, 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
- 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