mpas_tools.transects.cartesian_to_great_circle_distance
- mpas_tools.transects.cartesian_to_great_circle_distance(x, y, z, earth_radius)[source]
Cartesian transect points to great-circle distance
- Parameters:
x (numpy.ndarray) – The Cartesian x coordinate of a transect
y (numpy.ndarray) – The Cartesian y coordinate of the transect
z (numpy.ndarray) – The Cartesian z coordinate of the transect
earth_radius (float) – The radius of the earth
- Returns:
distance (numpy.ndarray) – The distance along the transect