1c_csc2s(3NCARG) NCAR GRAPHICS c_csc2s(3NCARG)
2
3
4
6 c_csc2s - convert from Cartesian coordinates to lat/lon coordinates.
7
9 void c_csc2s(int, float *, float *, float *, float *, float *);
10
11
13 c_csc2s(n, x, y, z, rlat, rlon);
14
15
17 n The number of input Cartesian coordinates.
18
19 x An array containing the X component of the Cartesian coor‐
20 dinates of the input data. (rlat[i],rlon[i]) is the lat/lon
21 coordinate corresponding to the Cartesian coordinate
22 (x[i],y[i],z[i]) for i=0 to n-1.
23
24 y An array containing the Y component of the Cartesian coor‐
25 dinates of the input data. (rlat[i],rlon[i]) is the lat/lon
26 coordinate corresponding to the Cartesian coordinate
27 (x[i],y[i],z[i]) for i=0 to n-1.
28
29 z An array containing the Z component of the Cartesian coor‐
30 dinates of the input data. (rlat[i],rlon[i]) is the lat/lon
31 coordinate corresponding to the Cartesian coordinate
32 (x[i],y[i],z[i]) for i=0 to n-1.
33
34 rlat An array containing the latitudes of the output coordi‐
35 nates, in degrees.
36
37 rlon An array containing the longitudes of the output coordi‐
38 nates, in degrees.
39
41 c_csc2s is called to find the equivalent lat/lon coordinates to speci‐
42 fied Cartesian coordinates on a unit sphere. The Cartesian coordinate
43 (1.,0.,0.) is converted to lat/lon coordinate (0.,0.). Latitudes and
44 longitudes are assumed to be in degrees.
45
47 c_csc2s does not return a value.
48
50 To use c_csc2s, load the NCAR Graphics library ngmath.
51
53 css_overview, c_cssgrid, c_css2c.
54
55 Complete documentation for Cssgrid is available at URL
56 http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html
57
59 Copyright (C) 2000
60 University Corporation for Atmospheric Research
61
62 This documentation is free software; you can redistribute it and/or
63 modify it under the terms of the GNU General Public License as pub‐
64 lished by the Free Software Foundation; either version 2 of the
65 License, or (at your option) any later version.
66
67 This software is distributed in the hope that it will be useful, but
68 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
69 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
70 Public License for more details.
71
72 You should have received a copy of the GNU General Public License along
73 with this software; if not, write to the Free Software Foundation,
74 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
75
76
77
78
79UNIX MAY 2000 c_csc2s(3NCARG)