DOKK / manpages / debian 11 / libncarg-dev / c_css2c.3ncarg.en
c_css2c(3NCARG) NCAR GRAPHICS c_css2c(3NCARG)

c_css2c - convert from lat/lon coordinates to Cartesian coordinates.


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


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

The number of input lat/lon coordinates.
An array containing the latitudes of the input coordinates, in degrees.
An array containing the longitudes of the input coordinates, in degrees.
An array containing the X 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.
An array containing 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.
An array containing 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.

c_css2c is called 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.). Latitudes and longitudes are assumed to be in degrees.

c_css2c does not return a value.

To use c_css2c, load the NCAR Graphics library ngmath.

css_overview, c_cssgrid, c_csc2s.

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.

MAY 2000 UNIX