pysecs.calc_bearing#

pysecs.calc_bearing(latlon1: ndarray, latlon2: ndarray) ndarray#

Calculate the bearing (direction) between a set of points.

This function calculates the bearing in radians between any number of latitude and longitude points. It is the direction from point 1 to point 2 going from the cartesian x-axis towards the cartesian y-axis.

Parameters:
  • latlon1 (ndarray (n, 2 [lat, lon])) – An array of n (latitude, longitude) points.

  • latlon2 (ndarray (m, 2 [lat, lon])) – An array of m (latitude, longitude) points.

Returns:

The array of bearings between the input arrays.

Return type:

ndarray (n, m)