KURVP2(3NCARG)
β¨ NAME β¨
KURVP2 β bestie, this one does the interpolation for closed parametric curves π«
πΈ SYNOPSIS πΈ
CALL KURVP2 (T, XS, YS, N, X, Y, XP, YP, S, SIGMA)
okay so here's the tea β β the interpolated curve gets parameterized by mapping points in the interval [0.,1.] onto an interpolated closed curve. The resulting curve has a parametric representation where both components are splines under tension and functions of the polygonal arc length. The value 0. is mapped onto (X[1],Y[1]) and the value 1. is also mapped onto (X[1],Y[1]), because the interpolated curve is closed (it comes back around, it's giving full circle energy π). And pookie, listen: KURVP1 must be called before calling KURVP2. No skipping steps π
π DESCRIPTION π
T(real, input) β the value that's gonna get mapped to a point on the curve. The interval[0.,1.]maps onto the curve such that0.maps to(X(1),Y(1))and1.maps to(X(1),Y(1)), since the interpolated curve is closed. Any interval[TT,TT+1.]maps onto the entire curve. she's flexible like that β¨XS(real, output) β holds the X coordinate of the interpolated point thatTmaps to πYS(real, output) β holds the Y coordinate of the interpolated point thatTmaps to π¦N(integer, input) β the number of input data points. (N > 1) β gotta have at least two, no solo acts here πX(real, input) β an array holding the X values of the input points.Y(real, input) β an array holding the Y values of the input points. Adjacent pairs of points must be distinct β like, no two neighbors sitting on top of each other, that's not the vibe π«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.SIGMA(real, input) β the tension factor, aka the drama knob π. 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 KURVP2, load the NCAR Graphics library ngmath. that's it, that's the whole ritual π«Ά
π SEE ALSO π
kurvp1fitgrid_params
Complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β go read it, iykyk π
π 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 π this was KURVP2(3NCARG) from the UNIX manual, dated March 1998 β iconic, timeless, ate, 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