DSPNT2S(3NCARG)
π 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)), forL=1,N. so point number L has its value sitting right there inZ(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 dimensionMwith the X coordinates of the output data. and here's the cute part: the values inXOmay be in any order. she does not care. she is unbothered. β¨YOβ (Real, Input) β an array of dimensionMwith the Y coordinates of the output data. same deal: the values inYOmay be in any order. chaos accepted, queen. πZOβ (Real, Output) β an array of dimensionMholding the interpolated values. soZO(I)is the interpolated value at point(XO(I),YO(I))forI=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. ifIERcomes back as0, then no errors were detected, we ate, everything's slay. ifIERis non-zero, then go refer to the man page fordsgrid_errorsfor 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 π¦
dsgriddsgrid_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 π
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
- 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