compute_dist (pyleoclim.utils.mapping.compute_dist)
- pyleoclim.utils.mapping.compute_dist(lat_r, lon_r, lat_c, lon_c)[source]
Computes the distance in (km) between a reference point and an array of other coordinates.
- Parameters
lat_r (float) – The reference latitude, in deg
lon_r (float) – The reference longitude, in deg
lat_c (list) – A list of latitudes for the comparison points, in deg
lon_c (list) – A list of longitudes for the comparison points, in deg
See also
pyleoclim.utils.mapping.dist_sphere
calculate distance on a sphere
- Returns
dist – A list of distances in km.
- Return type
list