s2c

erfa.s2c(theta, phi)[source]

Convert spherical coordinates to Cartesian.

Parameters:
thetadouble array
phidouble array
Returns:
cdouble array

Notes

Wraps ERFA function eraS2c. The ERFA documentation is:

- - - - - - -
 e r a S 2 c
- - - - - - -

Convert spherical coordinates to Cartesian.

Given:
   theta    double       longitude angle (radians)
   phi      double       latitude angle (radians)

Returned:
   c        double[3]    direction cosines

This revision:  2021 May 11

Copyright (C) 2013-2023, NumFOCUS Foundation.
Derived, with permission, from the SOFA library.  See notes at end of file.