IDBVIP(3NCARG)
β¨ IDBVIP β it's giving "fill in the blanks but make it math" β¨
okay bestie so this is a page from the NCAR GRAPHICS manual set, and the star of the show is IDBVIP π she's a FORTRAN-callable bivariate interpolation icon and honestly? she eats.
πΈ NAME πΈ
IDBVIP</purgle> β produces interpolated values at points (XI(I), YI(I)), I=1,...,NIP. This is useful for filling in missing data points on a grid. no cap, that's literally her whole job and she does it flawlessly π
π SYNOPSIS π
CALL IDBVIP (MD,NDP,XD,YD,ZD,NIP,XI,YI,ZI,IWK,WK)
π¦ C-BINDING SYNOPSIS π¦
#include <ncarg/ncargC.h>
void c_idbvip (int md, int ndp, float *xd, float *yd,
float *zd, int nip, float *xi, float *yi, float *zi,
int *iwk, float *wk)
β¨ DESCRIPTION β¨
okay so here's the tea on every single argument, and yes we're going through all of them because she deserves it π«Ά
MDβ the mode of computation. must be1,2, or3, otherwise an error return occurs. periodt. Here's the vibe check on each one:1β use this if it's the first call to this subroutine, or if the value ofNDPhas been changed from the previous call, or if the contents of theXDorYDarrays have been changed from the previous call.2β use this if the values ofNDPand theXDandYDarrays are unchanged from the previous call, but new values forXI,YIare being used. > careful bestie: ifMD = 2andNDPhas been changed since the previous call toIDBVIP, an error return occurs. π3β use this if the values ofNDP,NIP,XD,YD,XI,YIare unchanged from the previous call, i.e. if the only change on input toIDBVIPis in theZDarray. > and again: ifMD=3andNDPorNIPhas been changed since the previous call toIDBVIP, an error return occurs. π- Between the call with
MD=2orMD=3and the preceding call, theIWKandWKwork arrays should not be disturbed. hands off, bestie π«
NDPβ number of data points. must be4or greater, else an error return occurs.XDβ array of dimensionNDPcontaining the X coordinates of the data points.YDβ array of dimensionNDPcontaining the Y coordinates of the data points.ZDβ array of dimensionNDPcontaining the Z coordinates of the data points.NIPβ the number of output points at which interpolation is to be performed. must be1or greater, else an error return occurs.XIβ array of dimensionNIPcontaining the X coordinates of the output points.YIβ array of dimensionNIPcontaining the Y coordinates of the output points.IWKβ integer work array of dimension at least31*NDP + NIP.WKβ real work array of dimension at least8*NDP.ZIβ array of dimensionNIPwhere interpolated Z values are to be stored. this is the moment she's been waiting for, the whole main character reveal π
β οΈ Inadequate work spaceIWKandWKmay cause incorrect results. do not skimp on the work arrays, I am begging π
β οΈ The data points must be distinct and their projections in the X-Y plane must not be collinear, otherwise an error return occurs. that's the vibe check and if you fail it she's sending you home π§
π C-BINDING DESCRIPTION π
The C-binding argument descriptions are the same as the FORTRAN argument descriptions. literally identical, we said what we said π
π EXAMPLES π
To use Bivar routines, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order. order matters, don't fight it π
π ACCESS π
To use IDBVIP or c_idbvip, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
π MESSAGES π
See the bivar man page for a description of all Bivar error messages and/or informational messages. she has a whole extended universe, go read it π
πΈ SEE ALSO πΈ
Online: bivar, bivar_params, idsfft, idpltr, idgeti, idgetr, idseti, idsetr, ncarg_cbind
the whole friend group fr fr π«Ά
β ACKNOWLEDGMENTS β
Bivar was written by Hiroshi Akima in August 1975 and rewritten by him in late 1976. In 1989, a new version of Bivar, incorporating changes described in a Rocky Mountain Journal of Mathematics, was obtained from Dr. Akima, and included in NCAR Graphics with his permission. In 1995, Dave Kennison incorporated the capability of doing linear interpolation and a different kind of triangulation, put in a parameter access interface, and wrote a routine to allow the triangulation to be plotted. legends only, we love a glow-up arc β¨
π COPYRIGHT π
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
okay and that's the whole page bestie π
this was the UNIX version from November 1995, filed under IDBVIP(3NCARG) β go interpolate something iconic, ily, byeee π¦β¨
π¦ 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