NATGRIDS(3NCARG)
β¨ NAME β¨
NATGRIDS β the main single precision Fortran entry point for natural neighbor gridding π (this one lives in the NCAR GRAPHICS manual, section 3NCARG, just so you know where to find it later π)
πΈ SYNOPSIS πΈ
CALL NATGRIDS (NPNTS, X, Y, Z, NUMXOUT, NUMYOUT, XI, YI, ZI, IER)
that's the whole vibe bestie, one call, ten arguments, slay π
π¦ DESCRIPTION π¦
okay so here's every single thing you're passing in, no skips, we're doing this properly π«Ά
NPNTS(Integer, Input) β how many input data points you've got. and like, it has to beNPNTS > 3. three or fewer? nope, not happening πX(Real, Input) β an array holding the X coordinates of your input data points.Y(Real, Input) β an array holding the Y coordinates of your input data points.Z(Real, Input) β an array holding the functional values of your input data points. so like,Z(L)is the value of the input function at coordinate(X(L),Y(L)), forL=1,NPNTS. literally a one-to-one situation β¨NUMXOUT(Integer, Input) β the number of X values in your output grid.NUMYOUT(Integer, Input) β the number of Y values in your output grid.XI(Real, Input) β an array of dimensionNUMXOUTwith the X coordinates of the output data grid. the values inXImust be increasing, but ngl they don't have to be equally spaced π«YI(Real, Input) β an array of dimensionNUMYOUTwith the Y coordinates of the output data grid. same deal: the values inYImust be increasing, and again, not equally spaced is totally fine π«ZI(Real, Output) β a two-dimensional array of dimensionNUMXOUT x NUMYOUTholding the interpolated functional values.ZI(I,J)is the interpolated value at grid point(XI(I),YI(J)). this is the one you actually wanted, the main character of the output πIER(Integer, Output) β the error return value. ifIERcomes back as0, then no errors were detected, we love that for you π ifIERis non-zero, then go read the man page fornatgrid_errorsfor the details, okay? don't just sit there wondering π«
π₯ USAGE π₯
NATGRIDS is the single precision gridding function in the Natgrid package, periodt π
the behavior of NATGRIDS is controlled by the values you set for the various parameters described over in natgrid_params. and the way you set values for those parameters is with the subroutines NNSETI, NNSETR, and NNSETC. that's the whole pipeline, iykyk β¨
π ACCESS π
to use NATGRIDS, you load the NCAR Graphics library ngmath. that's the one, that's the library, don't forget it π
π SEE ALSO π
natgridnatgrid_paramsnnsetinngetinnsetrnngetrnnsetcnngetc
also, full and complete documentation for Natgrid is available at this URL, go treat yourself to some reading π:
http://ngwww.ucar.edu/ngdoc/ng/ngmath/natgrid/nnhome.html
π COPYRIGHT π
Copyright (C) 2000 University Corporation for Atmospheric Research
the use of this Software is governed by a License Agreement. (yes, a whole License Agreement, read it bestie, it's giving responsible π«Ά)
okay that's the whole page!! mwah π this one came from the UNIX manual, dated March 1997-1998, and it lives at NATGRIDS(3NCARG) if you ever need to find it again. bye bestie, go grid 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