KURV2(3NCARG)

πŸ“¦ version 6.6.2, in epel 9, fedora 43, fedora 44

πŸ’– KURV2 β€” it's giving interpolation, bestie πŸ’–

okay so this is KURV2, a page from the NCAR GRAPHICS manual (section 3NCARG, if you're keeping track πŸŽ€), and it literally does interpolation for parametric curves. no cap.


✨ NAME ✨

KURV2 β€” does interpolation for parametric curves πŸ¦‹


🌸 SYNOPSIS 🌸

CALL KURV2 (T, XS, YS, N, X, Y, XP, YP, S, SIGMA)

so here's the vibe: the interpolated curve is parameterized by mapping points in the interval [0.,1.] onto the interpolated curve. the resulting curve has a parametric representation where both of its components are splines under tension, and they're functions of the polygonal arc length. the value 0. is mapped onto (X[1],Y[1]) and the value 1. is mapped onto (X[N],Y[N]). πŸ’«

🚨 bestie listen β€” KURV1 must be called before calling KURV2. not optional. don't skip it. πŸ™ˆ

πŸ’… 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 that 0. is mapped to (X(1),Y(1)) and 1. is mapped to (X(N),Y(N)). values outside of [0.,1.] result in extrapolation 😳 so like, stay in your lane unless you're being intentional about it.
  • XS β€” (real, output) contains the X coordinate of the interpolated point that T maps to. iconic. πŸ’–
  • YS β€” (real, output) contains the Y coordinate of the interpolated point that T maps to. slay. πŸ’–
  • N β€” (integer, input) the number of input data points. (N > 1) fr fr, it's gotta be more than 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 β€” like, no duplicates, they have to actually be different points, okay? 🫢
  • XP β€” (real, input) an array of length N as computed by KURV1.
  • YP β€” (real, input) an array of length N as computed by KURV1.
  • S β€” (real, input) an array of length N containing the polygonal arc lengths of the curve.
  • 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 is 1. it's giving tension, literally ✨

🌈 ACCESS 🌈

to use KURV2, load the NCAR Graphics library ngmath. that's the one. that's the whole access situation. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • kurv1
  • fitgrid_params

complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β€” go read it, bestie, it's right there πŸ“š


Copyright (C) 2000 University Corporation for Atmospheric Research

the use of this Software is governed by a License Agreement. read it, respect it, periodt. πŸ’œ


and that's the whole page, bestie!! this one's from March 1998, it's the UNIX version of the KURV2(3NCARG) page, and honestly? she's a classic. stay interpolated, stay iconic. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from