great_circle_points#
- caput.astro.coordinates.spherical.great_circle_points(sph1: numpy.typing.ArrayLike[numpy.integer | numpy.floating], sph2: numpy.typing.ArrayLike[numpy.integer | numpy.floating], npoints: int) numpy.ndarray[numpy.floating][source]#
Compute intermediate points on the great circle between endpoints..
- Parameters:
- sph1, sph2array_like
Endpoints on sphere, packed as [theta, phi] along the last axis. The endpoints may not be antipodal (since there’s no unique great circle in that case).
- npoints
int Number of intermediate points to compute.
- Returns:
- points
ndarray Intermediate points, packed as
[theta1, phi1]along the last axis.
- points