dreye.spherical_to_cartesian#
- dreye.spherical_to_cartesian(Y)[source]#
Convert from spherical to cartesian coordinates.
- Parameters:
- Yarray-like (…, ndim)
Array where the last axis corresponds to the dimensions of each spherical coordinate starting with the radius and ending with the angle that spans 2pi. The other angles only span pi. All angle dimensions must be in radians.
- Returns:
- Xarray-like (…, ndim)
Y in cartesian corrdinates.
- Raises:
- ValueError
If the input array Y is not at least 1-dimensional.