eeglabio.utils.cart_to_eeglab_sph#

eeglabio.utils.cart_to_eeglab_sph(cart)#

Convert Cartesian coordinates to EEGLAB spherical coordinates. Implementation is based on EEGLAB’s convertlocs and Matlab’s cart2sph

Parameters:
cartndarray, shape (n_points, 3)

Array containing points in Cartesian coordinates (x, y, z)

Returns:
sph_ptsndarray, shape (n_points, 7)

Array containing points in spherical coordinates (sph_theta, sph_phi, sph_radius, theta, radius, sph_theta_besa, sph_phi_besa)

See also

cart_to_eeglab