Menu

Deep learning for NeuroImaging in Python.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

surfify.utils.coord.sph2cart(alpha, beta, r)[source]ΒΆ

Spherical to cartesian coordinate transform.

Parameters:

alpha : float or array_like

Azimuth angle in radiants.

beta : float or array_like

Elevation angle in radiants.

r : float or array_like

Radius.

Returns:

x : float or numpy.ndarray

x-component of Cartesian coordinates

y : float or numpy.ndarray

y-component of Cartesian coordinates

z : float or numpy.ndarray

z-component of Cartesian coordinates

Follow us

© 2025, nidl developers