c_css2c(3NCARG)
β¨ 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])fori=0ton-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])fori=0ton-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])fori=0ton-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_overviewc_cssgridc_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 π
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
- 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