magpie.coords.sphere2cart

magpie.coords.sphere2cart(r, phi, theta[, center=[0., 0., 0.]])

Converts spherical polar coordinates into cartesian coordinates.

Parameters
rarray

Radial distance.

phiarray

Longitudinal coordinates (radians = [0, 2pi]).

thetaarray

Latitude coordinates (radians = [0, pi]).

centerlist

Center point of spherical polar coordinate grid.

Returns
x, y, zarray

Euclidean coordinates.