mpas_tools.transects.angular_distance
- mpas_tools.transects.angular_distance(x, y, z)[source]
- Compute angular distance between points on the sphere, following: https://en.wikipedia.org/wiki/Great-circle_distance - Parameters:
- x (numpy.ndarray) – The Cartesian x coordinate of a transect, where the number of segments is - len(x) - 1.- x,- yand- zare of the same length.
- y (numpy.ndarray) – The Cartesian y coordinate of the transect 
- z (numpy.ndarray) – The Cartesian z coordinate of the transect 
 
- Returns:
- distance (numpy.ndarray) – The angular distance (in radians) between segments of the transect.