geodesic#

metpy.interpolate.geodesic(crs, start, end, steps)[source]#

Construct a geodesic path between two points.

This function acts as a wrapper for the geodesic construction available in pyproj.

Parameters:
  • crs (pyproj.crs.CRS) – PyProj Coordinate Reference System to use for the output

  • start ((2, ) array-like) – A latitude-longitude pair designating the start point of the geodesic (units are degrees north and degrees east).

  • end ((2, ) array-like) – A latitude-longitude pair designating the end point of the geodesic (units are degrees north and degrees east).

  • steps (int, optional) – The number of points along the geodesic between the start and the end point (including the end points).

Returns:

numpy.ndarray – The list of x, y points in the given CRS of length steps along the geodesic.

See also

cross_section