magpie.coords.cart2polar

magpie.coords.cart2polar(x, y, center=[0.0, 0.0])

Returns the polar coordinates for a given set of cartesian coordinates.

Parameters
xarray

x coordinates.

yarray

y coordinates.

centerlist

Center point of polar coordinate grid.

Returns
rarray

Radial coordinate.

phiarray

Phi coordinate.