SURF2(3NCARG)
β¨ 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 containingMX coordinates for grid lines in the X direction. These values must be strictly increasing.Yβ (real, input) An array containingNY 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 containingM x Nfunctional values at the grid points;Z(I,J)contains the functional value at(X(I),Y(J))forI=1,MandJ=1,N.IZβ (integer, input) The row dimension of the matrixZ(IZis greater than or equal toM). so like,IZ >= M, she's roomy, she's spacious πZPβ (real, input) An array of sizeM 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 is1. so like, lowkey smooth at0, highkey angular at50, and1is 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 π
surf1fitgrid_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 π
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
- debian bookworm: libncarg-dev 6.6.2.dfsg.1-1
- debian trixie: libncarg-dev 6.6.2.dfsg.1-10+b2
- ubuntu jammy: libncarg-dev 6.6.2-10build2
- ubuntu questing: libncarg-dev 6.6.2.dfsg.1-10build2
- ubuntu resolute: libncarg-dev 6.6.2.dfsg.1-12
- ubuntu stonking: libncarg-dev 6.6.2.dfsg.1-12build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms