huracanpy.calc.distance#
- huracanpy.calc.distance(lon, lat, track_id=None, method='geod', ellps='WGS84')[source]#
Compute the distance between successive lon, lat points, without including differences between the end and start points of different tracks
- Parameters:
lon (xarray.DataArray)
lat (xarray.DataArray)
track_id (array_like, optional)
method (str, optional) – The method of computing distances, either geodesic (“geod”) or haversine (“haversine”)
ellps (str, optional) – The definition of the globe to use for the geodesic calculation (see pyproj.Geod). Default is “WGS84”.
- Return type: