logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Access

       To use c_csc2sd, load the NCAR Graphics library ngmath.

Description

       n           The number of input Cartesian coordinates.

       x           An  array  containing  the  X  component  of  the  Cartesian  coordinates  of the input data.
                   (rlat[i],rlon[i]) is  the  lat/lon  coordinate  corresponding  to  the  Cartesian  coordinate
                   (x[i],y[i],z[i]) for i=0 to n-1.

       y           An  array  containing  the  Y  component  of  the  Cartesian  coordinates  of the input data.
                   (rlat[i],rlon[i]) is  the  lat/lon  coordinate  corresponding  to  the  Cartesian  coordinate
                   (x[i],y[i],z[i]) for i=0 to n-1.

       z           An  array  containing  the  Z  component  of  the  Cartesian  coordinates  of the input data.
                   (rlat[i],rlon[i]) is  the  lat/lon  coordinate  corresponding  to  the  Cartesian  coordinate
                   (x[i],y[i],z[i]) for i=0 to n-1.

       rlat        An array containing the latitudes of the output coordinates, in degrees.

       rlon        An array containing the longitudes of the output coordinates, in degrees.

Function Prototype

           void   c_csc2sd(int, double *, double *, double *, double *, double *);

Name

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

Return Value

       c_csc2sd does not return a value.

See Also

       css_overview, c_cssgrid, c_csc2s.

       Complete documentation for Cssgrid is available at URL
       http://ngwww.ucar.edu/ngdoc/ng/ngmath/cssgrid/csshome.html

Synopsis

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

Usage

       c_csc2sd  is  called  to  find the equivalent lat/lon coordinates to specified Cartesian coordinates on a
       unit sphere.  The Cartesian coordinate (1.,0.,0.) is converted to lat/lon coordinate  (0.,0.).  Latitudes
       and longitudes are assumed to be in degrees.  c_csc2sd is a double precision version of c_csc2s.

See Also