CSSGRID(3NCARG)

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

πŸ’– 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)) for I = 1 to N. so it's the actual vibes you're interpolating πŸ’…
  • NI (integer, input) β€” the number of rows in the uniform output grid. and yes, NI can be 1. no minimum drama here.
  • NJ (integer, input) β€” the number of columns in the uniform output grid. NJ can be 1 too. equal opportunity grid energy ✨
  • PLAT (real, intput) β€” an array of length NI containing the latitudes of the output grid lines. the values in PLAT should 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 length NJ containing the longitudes of the output grid lines. the value in PLON should be in degrees. (and yeah, intput again πŸ™ˆ same deal.)
  • FF (real, output) β€” an NI by NJ array holding the desired interpolated values. FF(I,J) is the interpolated value at the coordinate specified by PLAT(I) and PLON(J) for I = 1 to NI and J = 1 to NJ. this is the moment. this is what we came for. πŸ‘‘
  • IWK (integer, input) β€” an integer workspace of length 27*N. yes, twenty-seven times N. write it down. πŸ“
  • RWK (double precision, input) β€” a work array dimensioned for 13*N.
🚨 BESTIE LISTEN 🚨 RWK must be typed DOUBLE 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. if IER comes back as 0, then no errors were detected, we ate, no crumbs πŸŽ‰ if IER is non-zero, then go read the man page for cssgrid_errors for 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_overview
  • csstri
  • cssgrid_errors

complete documentation for Cssgrid is available at URL http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html 🌐


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