s2p

erfa.s2p(theta, phi, r)[source]

Wrapper for ERFA function eraS2p.

Parameters

theta : double array

phi : double array

r : double array

Returns

p : double array

Notes

The ERFA documentation is below.

- - - - - - -
 e r a S 2 p
- - - - - - -

Convert spherical polar coordinates to p-vector.

Given:
   theta   double       longitude angle (radians)
   phi     double       latitude angle (radians)
   r       double       radial distance

Returned:
   p       double[3]    Cartesian coordinates

Called:
   eraS2c       spherical coordinates to unit vector
   eraSxp       multiply p-vector by scalar

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