c_css2c(3NCARG)

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

✨ c_css2c ✨

okay bestie, welcome to the NCAR GRAPHICS corner of the manual β€” this is c_css2c, from the 3NCARG section, and she's here to do one (1) thing and do it flawlessly. πŸ’…


🌸 NAME 🌸

c_css2c β€” convert from lat/lon coordinates to Cartesian coordinates. that's it. that's the whole personality. πŸ¦‹


πŸŽ€ FUNCTION PROTOTYPE πŸŽ€

void   c_css2c(int, float *, float *, float *, float *, float *);

look at her. six args. no notes. 😌


πŸ’– SYNOPSIS πŸ’–

c_css2c(n, rlat, rlon, x, y, z);

✨ DESCRIPTION ✨

here's the tea on every single argument, no skips, fr fr:

  • n β€” the number of input lat/lon coordinates. how many you're feeding her. πŸ“
  • rlat β€” an array holding the latitudes of the input coordinates, in degrees.
  • rlon β€” an array holding the longitudes of the input coordinates, in degrees.
  • x β€” an array holding the X component of the Cartesian coordinates of the output data. so (x[i],y[i],z[i]) is the Cartesian coordinate corresponding to the lat/lon coordinate (rlat[i],rlon[i]) for i=0 to n-1. πŸ’œ
  • y β€” an array holding the Y component of the Cartesian coordinates of the output data. (x[i],y[i],z[i]) is the Cartesian coordinate corresponding to the lat/lon coordinate (rlat[i],rlon[i]) for i=0 to n-1. πŸ’œ
  • z β€” an array holding the Z component of the Cartesian coordinates of the output data. (x[i],y[i],z[i]) is the Cartesian coordinate corresponding to the lat/lon coordinate (rlat[i],rlon[i]) for i=0 to n-1. πŸ’œ
yes the x/y/z trio says the same sentence three times. that's not a typo, that's just how she communicates. iconic behavior honestly.

🌈 USAGE 🌈

so, when do you call her? you call c_css2c to find the equivalent Cartesian coordinates on a unit sphere to specified latitude and longitude coordinates. 🧚

the coordinate of 0. latitude and 0. longitude is converted to Cartesian coordinate (1.,0.,0.). that's the vibe. that's the anchor point.

latitudes and longitudes are assumed to be in degrees. periodt. πŸ”₯


πŸ’« RETURN VALUE πŸ’«

c_css2c does not return a value. she's a void girlie. she gives you everything through the arrays and asks for nothing back. 🫢


πŸ‘‘ ACCESS πŸ‘‘

to use c_css2c, load the NCAR Graphics library ngmath. that's the whole key to the kingdom, iykyk. πŸ”‘


πŸ¦‹ SEE ALSO πŸ¦‹

  • css_overview
  • c_cssgrid
  • c_csc2s

complete documentation for Cssgrid is available at URL:

http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html

go read the whole family, they're all slaying in their own lane. ⭐


Copyright (C) 2000 University Corporation for Atmospheric Research

The use of this Software is governed by a License Agreement.


and that's the page, bestie!! πŸŽ€ UNIX, MAY 2000, straight out of the c_css2c(3NCARG) files β€” no cap, every detail kept, every vibe upgraded. go convert some coordinates. mwah. πŸ’–βœ¨

πŸ“¦ where this page comes from