pyrfu.pyrf.sph2cart module#

pyrfu.pyrf.sph2cart.sph2cart(azimuth, elevation, r)[source]#

Transform spherical to cartesian coordinates

Parameters:
  • azimuth (float or ndarray) – Azimuthal angle (phi).

  • elevation (float or ndarray) – Elevation angle (theta)

  • r (float or ndarray) – Radius.

Returns:

  • x (float or ndarray) – Cartesian x-axis coordinates.

  • y (float or ndarray) – Cartesian y-axis coordinates.

  • z (float or ndarray) – Cartesian z-axis coordinates