magpack.vectorop.cart2sph#
- cart2sph(x, y, z)#
Converts cartesian coordinates to spherical coordinates.
- Parameters:
- x, y, znp.ndarray
The x, y and z cartesian coordinates.
- Returns:
- np.ndarray
The resulting spherical coordinates as (radius, elevation, azimuth).