NATGRIDD(3NCARG)
β¨ NATGRIDD β¨ (a.k.a. NATGRIDD(3NCARG) from the NCAR GRAPHICS fam)
okay bestie, so this is the primary double precision Fortran entry for natural neighbor gridding π and honestly? she's iconic. this page lives in the NCAR Graphics manual and it's about to be your whole personality.
πΈ SYNOPSIS πΈ
CALL NATGRIDD (NPNTS, X, Y, Z, NUMXOUT, NUMYOUT, XI, YI, ZI, IER)
that's the whole vibe. one call, ten arguments, no cap. π«Ά
π DESCRIPTION π
so here's the tea on every single argument, and yes, we're doing all of them:
NPNTSβ (Integer, Input) the number of input data points. and listen,NPNTS > 3. the original literally wrote that in parens. so four or more, bestie. don't try it with three. πXβ (Double precision, Input) an array holding the X coordinates of your input data points. πYβ (Double precision, Input) an array holding the Y coordinates of your input data points. πZβ (Double precision, Input) an array holding the functional values of your input data points. translation:Z(L)is the value of the input function at coordinate(X(L),Y(L)), forL=1,NPNTS. so for every L from 1 to NPNTS, X, Y and Z all line up like a lil trio. πNUMXOUTβ (Integer, Input) how many X values are chillin' in your output grid.NUMYOUTβ (Integer, Input) how many Y values are chillin' in your output grid.XIβ (Double precision, Input) an array of dimensionNUMXOUTholding the X coordinates of the output data grid. the values inXImust be increasing, but they don't have to be equally spaced β she's flexible like that. β¨YIβ (Double precision, Input) an array of dimensionNUMYOUTholding the Y coordinates of the output data grid. same rule: the values inYImust be increasing, but not necessarily equally spaced. π«ZIβ (Double precision, Output) a two-dimensional array of dimensionNUMXOUT x NUMYOUTholding the interpolated functional values. specifically,ZI(I,J)is the interpolated value at grid point(XI(I),YI(J)). this is the moment. this is the main character. πIERβ (Integer, Output) the error return value. ifIERcomes back as0, then no errors were detected β slay, clean run, we love to see it. π ifIERis non-zero, then go read the man page fornatgrid_errorsfor the details, because that's where the receipts live. π
π¦ USAGE π¦
NATGRIDD is the double precision gridding function in the Natgrid package. periodt. π
the behavior of NATGRIDD is controlled by values set for the various parameters described over in natgrid_params. and how do you set those values, you ask? with the subroutines NNSETI, NNSETRD, and NNSETC. that's the whole flow. iykyk. π§
π ACCESS π
to use NATGRIDD, load the NCAR Graphics library ngmath. that's it, that's the step. π₯
π SEE ALSO π
go read these next, bestie, they're all part of the lore:
natgridnatgrid_paramsnnsetinngetinnsetrdnngetrdnnsetcnngetc
also!! complete documentation for Natgrid is available at this URL, copy it exactly:
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.
real talk bestie: this isn't a "do whatever" situation β the use of this Software is governed by a License Agreement, so check it before you go wild. π
and that's the page!! πΈπ¦π this was NATGRIDD(3NCARG) from NCAR GRAPHICS, dated March 1997-1998, living in the UNIX manual section. go forth and grid naturally, queen. ππβ¨
π¦ 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