spherical2cart

Import in python using from mcot.core.spherical import spherical2cart

mcot.core.spherical.spherical2cart(r, phi, theta)[source]

Converts from spherical coordinates

Parameters:
  • r – radius
  • phi – angle within the x-y plane (longitude)
  • theta – angle relative to z-axis (latitude)
Returns:

tuple with (x, y, z) coordinates