KURVPD(3NCARG)
π KURVPD π
ok so this is KURVPD, a lil routine from the NCAR GRAPHICS manual (that's the 3NCARG vibe, bestie, that's literally where you found this page). It does interpolation and derivatives for closed parametric curves. Slay. β¨
πΈ NAME πΈ
KURVPD β nterpolation and derivatives for closed parametric curves
not me pointing out that the original says "nterpolation" and not "interpolation" β I'm keeping it fr fr because the rule is we don't change a single character. iconic behavior from 1998. π
π SYNOPSIS π
CALL KURVPD (T, XS, YS, XST, YST, XSTT, YSTT, N, X, Y, XP, YP, S, SIGMA)
So here's the tea π«: this subroutine behaves exactly like KURVP2 except that, on top of everything else, it also hands you back the first and second derivatives of the component functions in the parameterization. The interval [0.,1.] maps onto a closed curve in the plane. The resulting curve has a parametric representation where both of its components are splines under tension and are functions of the polygonal arc length.
β οΈ IMPORTANT:KURVP1must be called before callingKURVPD. Like, noKURVP1, noKURVPD. it's giving prerequisite energy. π
β¨ DESCRIPTION β¨
Tβ (real, input) A value to be mapped to a point on the curve. The interval[0.,1.]is mapped onto the curve such that0.is mapped to(X(1),Y(1))and1.is mapped to(X(1),Y(1)). Any interval[TT,TT+1.]maps onto the entire closed curve. πXSβ (real, output) Contains the X coordinate of the point thatTmaps to. π«YSβ (real, output) Contains the Y coordinate of the point thatTmaps to. π«XSTβ (real, output) Contains the first derivatives of the X component with respect toT.YSTβ (real, output) Contains the first derivatives of the Y component with respect toT.XSTTβ (real, output) Contains the second derivatives of the X component with respect toT.YSTTβ (real, output) Contains the second derivatives of the Y component with respect toT.Nβ (integer, input) The number of input data points.(N > 1)β so like, more than one, bestie, don't try it with one. πXβ (real, input) An array containing the X values of the input points.Yβ (real, input) An array containing the Y values of the input points. Adjacent pairs of points must be distinct. π¨XPβ (real, input) An array of lengthNas computed byKURVP1.YPβ (real, input) An array of lengthNas computed byKURVP1.Sβ (real, input) An array of lengthNcontaining the polygonal arc lengths of the curve, as computed byKURVP1. π§SIGMAβ (real, input) Tension factor. Values near zero result in a cubic spline; large values (e.g.50) result in nearly a polygonal line. A typical value is1. ποΈ
π ACCESS π
To use KURVPD, load the NCAR Graphics library ngmath. that's the whole access situation, no cap. π«Ά
π SEE ALSO π
kurvp1kurvp2fitgrid_params
Complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β go read it, it's giving β¨well documentedβ¨.
π COPYRIGHT π
Copyright (C) 2000 University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
and that's the whole page, bestie π that footer at the bottom said UNIX, dated March 1998, and yes it was literally signed KURVPD(3NCARG) β main character energy from the very last line. periodt. π β¨
π¦ where this page comes from
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms