SURF2(3NCARG)

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

✨ SURF2 ✨

okay bestie, welcome to the NCAR GRAPHICS corner of the manual, this one's SURF2 from 3NCARG and it's giving glow-up for your gridded data πŸ’–

πŸ’… NAME πŸ’…

SURF2 β€” 2D interpolation for gridded data. that's it, that's the whole vibe ✨


🌸 SYNOPSIS 🌸

FUNCTION SURF2 (XX, YY, M, N, X, Y, Z, IZ, ZP, SIGMA)

so what this function does is it interpolates a surface value at a specified coordinate using bi-splines under tension πŸŽ€ and listen, this is the important part: SURF1 must be called before invoking SURF2. like, SURF1 is the main character that sets everything up, SURF2 just shows up afterwards. no cap.

The desired interpolated value is returned as the value of the function 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

here's the full cast of characters, one by one, no skips:

  • XX β€” (real, input) Contains the X coordinate of a point to be mapped onto the interpolated surface.
  • YY β€” (real, input) Contains the Y coordinate of a point to be mapped onto the interpolated surface.
  • M β€” (integer, input) The number of grid lines in the X direction. (M > 1) so like, more than one, bestie, don't come in here with a single grid line 😭
  • N β€” (integer, input) The number of grid lines in the Y direction. (N > 1)
  • X β€” (real, input) An array containing M X coordinates for grid lines in the X direction. These values must be strictly increasing.
  • Y β€” (real, input) An array containing N Y coordinates for grid lines in the Y direction. These values must be strictly increasing. yes, both of them, strictly increasing, I don't make the rules πŸ’…
  • Z β€” (real, input) An array containing M x N functional values at the grid points; Z(I,J) contains the functional value at (X(I),Y(J)) for I=1,M and J=1,N.
  • IZ β€” (integer, input) The row dimension of the matrix Z (IZ is greater than or equal to M). so like, IZ >= M, she's roomy, she's spacious πŸ‘‘
  • ZP β€” (real, input) An array of size M x N x 3.
  • 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, lowkey smooth at 0, highkey angular at 50, and 1 is the moment ✨

πŸŽ€ RETURN VALUE πŸŽ€

SURF2 returns the interpolated value at the specified point T. that's the whole point, that's the payoff, that's the slay 🫢


⭐ ACCESS ⭐

To use SURF2, load the NCAR Graphics library ngmath. that's the one, don't forget it πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ

  • surf1
  • 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 iconic πŸ“š


Copyright (C) 2000 University Corporation for Atmospheric Research

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


okay that's the whole page, you ate that fr fr πŸ’–

this has been SURF2(3NCARG) from the UNIX manual pages, dated March 1998 β€” yes she's vintage, yes she still serves πŸŒˆπŸ¦‹ mwah, go interpolate something gorgeous πŸ’…βœ¨

πŸ“¦ where this page comes from