s2p¶
- erfa.s2p(theta, phi, r)[source]¶
Convert spherical polar coordinates to p-vector.
- Parameters:
- thetadouble array
- phidouble array
- rdouble array
- Returns:
- pdouble array
Notes
Wraps ERFA function
eraS2p
. The ERFA documentation is:- - - - - - - 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 This revision: 2021 May 11 Copyright (C) 2013-2023, NumFOCUS Foundation. Derived, with permission, from the SOFA library. See notes at end of file.