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

NAME

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

SYNOPSIS

9       CALL CSS2CD (N, RLAT, RLON, X, Y, Z)
10

DESCRIPTION

12       N           (integer, input) The number of input lat/lon coordinates.
13
14       RLAT        (double precision, input) An array containing the latitudes
15                   of the input coordinates.
16
17       RLON        (double precision, input) An array  containing  the  longi‐
18                   tudes of the input coordinates.
19
20       X           (double precision, output) An array containing the X compo‐
21                   nent of the  Cartesian  coordinates  of  the  output  data.
22                   (X(I),Y(I),Z(I))  is the Cartesian coordinate corresponding
23                   to the lat/lon coordinate (RLAT(I),RLON(I)) for I=1 to N.
24
25       Y           (double precision, output) An array containing the Y compo‐
26                   nent  of  the  Cartesian  coordinates  of  the output data.
27                   (X(I),Y(I),Z(I)) is the Cartesian coordinate  corresponding
28                   to the lat/lon coordinate (RLAT(I),RLON(I)) for I=1 to N.
29
30       Z           (double precision, output) An array containing the Z compo‐
31                   nent of the  Cartesian  coordinates  of  the  output  data.
32                   (X(I),Y(I),Z(I))  is the Cartesian coordinate corresponding
33                   to the lat/lon coordinate (RLAT(I),RLON(I)) for I=1 to N.
34

USAGE

36       CSS2CD is called to find the equivalent Cartesian coordinates on a unit
37       sphere to specified latitude and longitude coordinates.  The coordinate
38       of 0. latitude and 0. longitude is converted  to  Cartesian  coordinate
39       (1.,0.,0.).  Latitudes  and  longitudes  are  assumed to be in degrees.
40       CSS2CD is a double precision verson of CSS2C.
41

ACCESS

43       To use CSS2CD, load the NCAR Graphics library ngmath.
44

SEE ALSO

46       css_overview, cssgrid, csc2sd, css2c.
47
48       Complete documentation for Cssgrid is available at URL
49       http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html
50
52       Copyright (C) 2000
53       University Corporation for Atmospheric Research
54
55       The use of this Software is governed by a License Agreement.
56
57
58
59UNIX                               MAY 2000                     CSS2CD(3NCARG)
Impressum