Fitgrid(3NCARG)

πŸ’– NAME πŸ’–

fitgrid β€” interpolate 1d and 2d data

okay bestie, welcome to fitgrid, the NCAR Graphics package that literally does interpolation for you and honestly? it's giving main character energy ✨


🌸 DESCRIPTION 🌸

Fitgrid is a whole package for interpolating one dimensional and two dimensional data. no cap. here's the vibe of what it can do for you:

  1. Interpolating single-valued functions in one dimension.
  2. Interpolating parametric curves in the plane.
  3. Computing an interpolatory surface through a rectangular grid of functional values.
  4. Interpolating periodic functions in one dimension.
  5. Finding integrals and derivatives of interpolated functions.

like… integrals AND derivatives?? she does it all fr fr πŸ’…


✨ SYNOPSIS ✨

πŸ”₯ FORTRAN single precision

CURV1   -  does set-up for CURV2.
CURV2   -  1D interpolation for non-periodic functions.
CURVD   -  derivatives for 1D functions.
CURVI   -  integrals for 1D functions.
CURVP1  -  does set-up for CURVP2 .
CURVP2  -  1D interpolation for periodic functions.
CURVPI  -  integrals for periodic functions.
CURVS   -  does smoothing and set-up for CURV2.
CURVPS  -  does smoothing for periodic functions.
KURV1   -  does set-up for KURV2.
KURV2   -  interpolation for parametric curves.
KURVD   -  derivatives for parametric curves.
KURVP1  -  set-up for KURVP2.
KURVP2  -  interpolation for closed parametric curves.
KURVPD  -  derivatives for closed parametric curves.
SURF1   -  set-up for SURF2.
SURF2   -  2D interpolation for gridded data.

bestie the setup-then-do-the-thing pattern is iconic β€” CURV1 sets up, CURV2 cooks πŸ“

πŸ’œ C single precision:

c_ftcurv    -  1D interpolation for non-periodic functions.
c_ftcurvd   -  derivatives for 1D functions.
c_ftcurvi   -  integrals for 1D functions.
c_ftcurvp   -  1D interpolation for periodic functions.
c_ftcurvpi  -  integrals for periodic functions.
c_ftcurvs   -  does smoothing for non-periodic functions.
c_ftcurvps  -  does smoothing for periodic functions.
c_ftkurv    -  interpolation for parametric curves.
c_ftkurvp   -  interpolation for closed parametric curves.
c_ftkurvd   -  derivatives for parametric curves.
c_ftkurvpd  -  interpolation for closed parametric curves.
c_ftsurf    -  2D interpolation for rectangular data.
c_ftseti    -  set values for int parameters.
c_ftgeti    -  get values for int parameters.
c_ftsetr    -  set values for float parameters.
c_ftgetr    -  get values for float parameters.
c_ftsetc    -  set values for string parameters.
c_ftgetc    -  get values for string parameters.
c_ftsetfa   -  set values for float arrays.
c_ftgetfa_size  -  get array size of float array.
c_ftgetfa_data  -  get float array data.

the c_ftset* / c_ftget* gang? the way that they set and get your int, float and string params… obsessed. and c_ftgetfa_size + c_ftgetfa_data are your float-array besties 🫢


πŸŽ€ ACCESS πŸŽ€

to use fitgrid entries, load the NCAR Graphics library ngmath. that's it. that's the whole gatekeep. πŸ”‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • Individual entries, fitgrid_params

Complete documentation for fitgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/fitgrid/fithome.html


Copyright (C) 2000 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.

πŸ’€ not me reminding you that the use of this Software is governed by a License Agreement β€” read it bestie, fr fr.

and that's the whole page, no crumbs left 🌈 this was the Fitgrid entry from the NCAR GRAPHICS manual, straight outta March 1998, and yes the manpage family is literally just called UNIX. slay, bye πŸ’–πŸ§šβœ¨