pyguymer3.geo.calc_angle_between_two_locs

pyguymer3.geo.calc_angle_between_two_locs(lon1_deg, lat1_deg, lon2_deg, lat2_deg, /)[source]

Calculate the angle between two coordinates.

This function reads in two coordinates (in degrees) on the surface of a sphere and calculates the angle (in degrees) between them, as viewed from the centre of the sphere.

Parameters:
  • lon1_deg (float) – the longitude of the first coordinate (in degrees)

  • lat1_deg (float) – the latitude of the first coordinate (in degrees)

  • lon2_deg (float) – the longitude of the second coordinate (in degrees)

  • lat2_deg (float) – the latitude of the second coordinate (in degrees)

Returns:

angle – the angle between the two coordinates (in degrees)

Return type:

float

Notes

Copyright 2017 Thomas Guymer [1]

References