Import in python using from mcutils.utils.spherical import spherical2cart
mcutils.utils.spherical.
spherical2cart
Converts from spherical coordinates
r – radius
phi – angle within the x-y plane (longitude)
theta – angle relative to z-axis (latitude)
tuple with (x, y, z) coordinates