thetaphi_plane_cart#

caput.astro.coordinates.spherical.thetaphi_plane_cart(sph_coords: numpy.typing.ArrayLike[numpy.integer | numpy.floating]) numpy.ndarray[numpy.float64][source]#

Convert unit vectors in spherical polar coordinates to Cartesian coordinates.

This routine is OpenMP-parallel.

Parameters:
sph_coordsarray_like

Angular unit vectors (in spherical polar coordinates) packed as [r, theta, phi] along the last axis.

Returns:
cert_vectorarray_like

Unit vectors in the theta and phi directions now in cartesian coordinates.