magpack.vectorop.sph2cart#
- sph2cart(r, th, ph)#
Converts spherical coordinates to cartesian coordinates.
- Parameters:
- r, th, phnp.ndarray
The radial, elevation and azimuthal spherical coordinates.
- Returns:
- np.ndarray
The resulting cartesian coordinates as (x, y, z).