CSSGRIDD(3NCARG)

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

✨ CSSGRIDD ✨

okay bestie, sit down, we're doing CSSGRIDD from the NCAR GRAPHICS manual, section 3NCARG πŸ’– it's a Fortran callable, it does tension spline interpolation on a sphere, and honestly? it's giving main character energy. πŸ¦‹


πŸ’… NAME πŸ’…

CSSGRIDD β€” tension spline interpolation on a sphere. yes that's it, that's the whole vibe. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

CALL CSSGRIDD (N, RLAT, RLON, F, NI, NJ, PLAT, PLON, FF, IWK, RWK, IER)

periodt. that's the call. 🫢


🌸 DESCRIPTION 🌸

okay so here's the tea on every single argument, and I mean every single one, we are not skipping anybody 🧚

  • N (integer, input) β€” how many input data points you got. and she has to be N > 2, okay? strictly greater. don't test her. 😭
  • RLAT (double precision, input) β€” an array holding the latitudes of your input data, in degrees. ⚠️ major caveat: the first three points must not be collinear β€” like, they cannot all lie on a common great circle. if they do? we don't talk about it. πŸ™ˆ
  • RLON (double precision, input) β€” an array holding the longitudes of your input data, also in degrees. longitude bestie, we love her. 🌈
  • F (double precision, input) β€” an array of data values. F(I) is the functional value at (RLAT(I),RLON(I)) for I = 1 to N. so like, the actual numbers you're interpolating. ✨
  • NI (integer, input) β€” the number of rows in the uniform output grid. and get this β€” NI can be 1. one row. single. iconic. πŸ‘‘
  • NJ (integer, input) β€” the number of columns in the uniform output grid. and yes, NJ can be 1 too. one column, one row, we contain multitudes. πŸ’œ
  • PLAT (double precision, input) β€” an array of length NI containing the latitudes of the output grid lines. the values in PLAT should be in degrees. πŸŽ€
  • PLON (double precision, input) β€” an array of length NJ containing the longitudes of the output grid lines. the values in PLON should be in degrees. πŸŽ€
  • FF (double precision, output) β€” the payoff bestie!! πŸŽ‰ an NI by NJ array containing 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. she's the moment. πŸ’–
  • 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. 🚨 note that RWK must be typed DOUBLE PRECISION β€” do not come in here with single precision, I'm begging you. 😭
  • IER (integer, output) β€” the error return value. if IER comes back as 0, no errors were detected, we slayed, we ate, nothing to see here. πŸ’… if IER is non-zero, then go read the man page for cssgrid_errors for the details β€” that's where the lore lives. πŸ“–

πŸ”₯ USAGE πŸ”₯

CSSGRIDD is called to find an interpolating tension spline for data randomly positioned on a sphere. 🌍 and β€” plot twist β€” CSSGRIDD is a double precision version of CSSGRID. so if you wanted the single-precision sibling, you know where to go. πŸ‘€


🌈 ACCESS 🌈

to use CSSGRIDD, load the NCAR Graphics library ngmath. that's the whole ritual. πŸ•―οΈβœ¨


πŸ’– SEE ALSO πŸ’–

  • css_overview
  • csstri
  • cssgrid
  • cssgrid_errors

and if you want the full deep dive, complete documentation for Cssgrid is available at this URL, literally copy-paste it, don't retype it bestie:

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.


and that's the whole page, bestie!! πŸ¦‹πŸ’–βœ¨ this was CSSGRIDD(3NCARG) from the UNIX manual, dated MAY 2000 β€” yeah she's a vintage queen and she still serves. πŸŽ€ go interpolate something cute. no cap. πŸ’…πŸ«Ά

πŸ“¦ where this page comes from