imap_processing.spice.geometry.spherical_to_cartesian#
- imap_processing.spice.geometry.spherical_to_cartesian(spherical_coords: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]]#
Convert spherical coordinates to Cartesian coordinates.
- Parameters:
spherical_coords (np.ndarray) –
A NumPy array with shape (n, 3), where each row contains the spherical coordinates (r, azimuth, elevation):
r : Distance of the point from the origin.
azimuth : angle in the xy-plane in radians [0, 2*pi].
elevation : angle from the z-axis in radians [-pi/2, pi/2].
- Returns:
cartesian_coords – Cartesian coordinates.
- Return type:
np.ndarray