KURV1(3NCARG)

✨ KURV1 ✨

okay so bestie, welcome to the NCAR GRAPHICS girlies section of the 3NCARG manual πŸ’… this one is KURV1, and she's the prepper β€” she does the math so KURV2 can do the glow-up. πŸŽ€


🌸 NAME 🌸

KURV1 β€” literally just calculate values for KURV2 usage. that's it, that's the job 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

CALL KURV1  (N, X, Y, SLP1, SLPN, ISLPSW, XP, YP, TEMP, S, SIGMA, IER)

This subroutine calculates certain values that are used by KURV2 in order to compute an interpolatory spline under tension through a sequence of points in the plane. no cap, it's giving setup energy β€” because the actual computation of the interpolated values must be done using KURV2. KURV1 does NOT do the whole thing herself. she's the opening act, not the headliner. πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

okay here's the whole cast, one by one, no skips:

  • N β€” (integer, input) The number of input data values. (N > 1) β€” yes, more than one, we need at least two points to make a line bestie 😭
  • X β€” (real, input) An array containing the X values of the points.
  • Y β€” (real, input) An array containing the Y values of the points. Adjacent pairs of points must be distinct. β€” like, they cannot be the same point twice, that's a hard no πŸ™ˆ
  • SLP1 β€” (real, input) A value (in radians) containing the slope at (X(1),Y(1)). The angles are measured counter-clockwise from the X axis and the positive sense of the curve is assumed to be that moving from point 1 to point N. A value for SLP1 may be omitted as indicated by the switch ISLPSW.
  • SLPN β€” (real, input) A value (in radians) containing the slope at (X(N),Y(N)). The angles are measured counter-clockwise from the X axis and the positive sense of the curve is assumed to be that moving from point 1 to point N. A value for SLP2 may be omitted as indicated by the switch ISLPSW.
  • ISLPSW β€” (integer, input) A switch to indicate whether the slopes at the end points should be calculated internally. The vibes are:
    • = 0 if SLP1 and SLPN are user-specified.
    • = 1 if SLP1 is user-specified, but SLPN calculated internally.
    • = 2 if SLPN is user-specified, but SLP1 calculated internally.
    • = 3 if SLP1 and SLPN are internally calculated.
  • XP β€” (real, output) An array of length N.
  • YP β€” (real, output) An array of length N.
  • TEMP β€” (real, input) Scratch space. β€” it's the little notepad she scribbles on, don't @ her about it πŸ“
  • S β€” (real, input) An array of length N. On output, S contains the polygonal arclengths of the curve. β€” she comes in as one thing and leaves as another, main character transformation ✨
  • 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. β€” so like, 0 = smooth silky hair, 50 = crunchy straight-across bangs πŸ’€ pick your fighter.
  • IER β€” (integer, output) An error return value. If IER is returned as 0, then no errors were detected.
    • = 1 if N is less than 2.
    • = 2 if a pair of adjacent points coincide.
fr fr, check your IER before you go blaming the math. she TELLS you what went wrong. πŸ™

πŸŽ€ ACCESS πŸŽ€

To use KURV1, load the NCAR Graphics library ngmath. that's the whole step, go off 🫢


🌈 SEE ALSO 🌈

  • kurv2
  • fitgrid_params

Complete documentation for Fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html β€” click it, iykyk πŸ’…


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 KURV1 from the UNIX manual, dated March 1998, living under the 3NCARG section header β€” iconic behavior honestly, periodt πŸ’–βœ¨