1c_css2c(3NCARG)                  NCAR GRAPHICS                 c_css2c(3NCARG)
2
3
4

NAME

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

FUNCTION PROTOTYPE

9           void   c_css2c(int, float *, float *, float *, float *, float *);
10
11

SYNOPSIS

13           c_css2c(n, rlat, rlon, x, y, z);
14
15

DESCRIPTION

17       n           The number of input lat/lon coordinates.
18
19       rlat        An array containing the latitudes of the input coordinates,
20                   in degrees.
21
22       rlon        An array containing the longitudes  of  the  input  coordi‐
23                   nates, in degrees.
24
25       x           An  array containing the X component of the Cartesian coor‐
26                   dinates of the output data. (x[i],y[i],z[i]) is the  Carte‐
27                   sian  coordinate  corresponding  to  the lat/lon coordinate
28                   (rlat[i],rlon[i]) for i=0 to n-1.
29
30       y           An array containing the Y component of the Cartesian  coor‐
31                   dinates  of the output data. (x[i],y[i],z[i]) is the Carte‐
32                   sian coordinate corresponding  to  the  lat/lon  coordinate
33                   (rlat[i],rlon[i]) for i=0 to n-1.
34
35       z           An  array containing the Z component of the Cartesian coor‐
36                   dinates of the output data. (x[i],y[i],z[i]) is the  Carte‐
37                   sian  coordinate  corresponding  to  the lat/lon coordinate
38                   (rlat[i],rlon[i]) for i=0 to n-1.
39

USAGE

41       c_css2c is called to find the equivalent  Cartesian  coordinates  on  a
42       unit sphere to specified latitude and longitude coordinates.  The coor‐
43       dinate of 0. latitude and 0. longitude is converted to Cartesian  coor‐
44       dinate  (1.,0.,0.).  Latitudes  and  longitudes  are  assumed  to be in
45       degrees.
46

RETURN VALUE

48       c_css2c does not return a value.
49

ACCESS

51       To use c_css2c, load the NCAR Graphics library ngmath.
52

SEE ALSO

54       css_overview, c_cssgrid, c_csc2s.
55
56       Complete documentation for Cssgrid is available at URL
57       http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html
58
60       Copyright (C) 2000
61       University Corporation for Atmospheric Research
62
63       The use of this Software is governed by a License Agreement.
64
65
66
67UNIX                               MAY 2000                    c_css2c(3NCARG)
Impressum