pyacs.lib.coordinates.geo_spherical_distance
- pyacs.lib.coordinates.geo_spherical_distance.geo_spherical_distance(lon1, lat1, h1, lon2, lat2, h2, unit='radians', Rt=6371000.0)[source]
Spherical distance between two points given in geodetic coordinates.
- Parameters:
lon1 (float or array_like) – Longitude of first point.
lat1 (float or array_like) – Latitude of first point.
h1 (float or array_like) – Height of first point (used with geo2xyz; radius implied).
lon2 (float or array_like) – Longitude of second point.
lat2 (float or array_like) – Latitude of second point.
h2 (float or array_like) – Height of second point.
unit ({'radians', 'dec_deg'}, optional) – Units for longitude and latitude. Default is ‘radians’.
Rt (float, optional) – Mean Earth radius in meters. Default 6.371e6.
- Returns:
Distance in meters.
- Return type:
float or ndarray