magpie.coords.cart2sphere
- magpie.coords.cart2sphere(x, y, z[, center=[0., 0., 0.]])
Return polar coordinates for a given set of cartesian coordinates.
- Parameters
- xarray
x coordinate.
- yarray
y coordinate.
- centerlist
Center point of polar coordinate grid.
- Returns
- rarray
Radial coordinates.
- phiarray
Phi coordinates [0, 2pi].
- thetaarray
Theta coordinates [0, pi].