c_ftcurv(3NCARG)
β¨ c_ftcurv β 1D interpolation for non-periodic functions β¨
okay bestie, welcome to c_ftcurv from the NCAR GRAPHICS manual, section 3NCARG π this is the girl who takes your scattered little data points and goes "say no more" and draws a smooth curve through them. non-periodic only, she has boundaries π
πΈ FUNCTION PROTOTYPE πΈ
int c_ftcurv (int, float [], float [], int, float [], float []);
like, that's the whole aura right there π«Ά
π SYNOPSIS π
int c_ftcurv (n, xi, yi, m, xo, yo);
six args, one job, zero drama β¨
π DESCRIPTION π
nβ the number of input data points you're feeding her. heads up:n > 1, she needs at least a lil something to work with, one singular point is not a curve bestie πxiβ an array holding the abscissae for the input function. that's the x's, the horizontal situation πyiβ an array holding the functional values of the input function β soy(k)is the functional value atx(k)fork=0,n. that's your y's, the vertical vibe check πmβ the number of interpolated values you want back. how many points do you desire, queen πxoβ an array holding the abscissae for the interpolated values. the x's of the new points she's about to manifest β¨yoβ an array holding the interpolated functional values βyo(k)is the functional value atxo(k)fork=0,n. the y's of the freshly invented points, and honestly? iconic π
π¦ RETURN VALUE π¦
c_ftcurv hands you back an error value, as per:
= 0β no error. we love a clean run, no cap π= 1β ifnis less than 2. she said give me more than one point or give me nothing π= 2β if X values are not strictly increasing. the x's have to go up, up, up, strictly, no ties, no backtracking, no chaos β¬οΈ
π₯ USAGE π₯
so here's the order of operations, bestie: you call c_ftcurv after you've already set all the control parameter values you wanted, using the procedures c_ftseti, c_ftsetr, and c_ftsetc. set the vibes first, then interpolate. periodt π
the control parameters that apply to c_ftcurv are: sig, sl1, sln, sf1. those four, that's the squad π
π ACCESS π
to use c_ftcurv, you gotta load the NCAR Graphics library ngmath. that's the ticket in, no workaround ποΈ
π SEE ALSO π
fitgrid_paramsc_ftsetic_ftsetrc_ftsetc
also, full documentation for Fitgrid is living at this URL, go read her:
http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html
π 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, no crumbs left, fr fr πΈ
okay so this was the UNIX flavor of the c_ftcurv(3NCARG) page, dated March 1998, and it's genuinely giving retro-baddie energy. ty for reading my little unix rant, mwah πβ¨π
π¦ 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