CSSGRID(3NCARG)
π CSSGRID π
okay bestie, so this is a FORTRAN-callable thing from NCAR GRAPHICS (the 3NCARG girlies know β¨), and it does tension spline interpolation on a sphere. yes. on a sphere. we're doing geometry today and it's gonna slay π
β¨ NAME β¨
CSSGRID β tension spline interpolation on a sphere π¦
πΈ SYNOPSIS πΈ
CALL CSSGRID (N, RLAT, RLON, F, NI, NJ, PLAT, PLON, FF, IWK, RWK, IER)
that's it. one call. eleven arguments. no cap. π
π DESCRIPTION π
okay so here's the tea on every single one of these, because we do NOT skip parameters in this house π«Ά
N(integer, input) β how many input data points you're bringing to the function. and heads up:N > 2. we need at least three, periodt.RLAT(real, input) β an array holding the latitudes of your input data, in degrees. β οΈ and this part matters: the first three points must not be collinear β like, they cannot all lie on a common great circle. so don't do that. seriously.RLON(real, input) β an array holding the longitudes of your input data, also in degrees. latitude's bestie fr fr.F(real, input) β an array holding your data values.F(I)is a functional value at(RLAT(I),RLON(I))forI = 1toN. so it's the actual vibes you're interpolating πNI(integer, input) β the number of rows in the uniform output grid. and yes,NIcan be1. no minimum drama here.NJ(integer, input) β the number of columns in the uniform output grid.NJcan be1too. equal opportunity grid energy β¨PLAT(real, intput) β an array of lengthNIcontaining the latitudes of the output grid lines. the values inPLATshould be in degrees.
okay not me pointing out that the original manpage literally says intput here π it means input bestie, we're keeping the typo because the facts don't change, only the vibe does π
PLON(real, intput) β an array of lengthNJcontaining the longitudes of the output grid lines. the value inPLONshould be in degrees. (and yeah,intputagain π same deal.)FF(real, output) β anNIbyNJarray holding the desired interpolated values.FF(I,J)is the interpolated value at the coordinate specified byPLAT(I)andPLON(J)forI = 1toNIandJ = 1toNJ. this is the moment. this is what we came for. πIWK(integer, input) β an integer workspace of length27*N. yes, twenty-seven times N. write it down. πRWK(double precision, input) β a work array dimensioned for13*N.
π¨ BESTIE LISTEN π¨RWKmust be typedDOUBLE PRECISION. not real, not single, not "it's fine".DOUBLE PRECISION. this is the one thing that will absolutely wreck your whole day if you ignore it π
IER(integer, output) β the error return value. ifIERcomes back as0, then no errors were detected, we ate, no crumbs π ifIERis non-zero, then go read the man page forcssgrid_errorsfor the details. that's your next tab, bestie.
π USAGE π
you call CSSGRID to find an interpolating tension spline for data randomly positioned on a sphere. that's the whole mission statement. iconic honestly. π
π¦ ACCESS π¦
to use CSSGRID, load the NCAR Graphics library ngmath. that's the one. π
β SEE ALSO β
css_overviewcsstricssgrid_errors
complete documentation for Cssgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html π
π 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 bestie, you're officially a sphere-interpolation girlie now πΈπ«Ά this was the CSSGRID(3NCARG) page from NCAR GRAPHICS, and the footer energy is UNIX, May 2000 β so yes, this page is older than us and still serving π
β¨ bye ily, go interpolate responsibly π
π¦ 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