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       This documentation is free software; you  can  redistribute  it  and/or
56       modify  it  under  the  terms of the GNU General Public License as pub‐
57       lished by the  Free  Software  Foundation;  either  version  2  of  the
58       License, or (at your option) any later version.
59
60       This  software  is  distributed in the hope that it will be useful, but
61       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
62       CHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
63       Public License for more details.
64
65       You should have received a copy of the GNU General Public License along
66       with  this  software;  if  not,  write to the Free Software Foundation,
67       Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
68
69
70
71
72UNIX                               MAY 2000                     CSS2CD(3NCARG)
Impressum