huracanpy.calc.translation_speed#

huracanpy.calc.translation_speed(lon, lat, time, track_id=None, method='geod', ellps='WGS84', centering='forward')[source]#

Compute translation speed along tracks

Parameters:
  • lon (xarray.DataArray) – Longitude and latitude points

  • lat (xarray.DataArray) – Longitude and latitude points

  • time (xarray.DataArray) – Time for each point

  • track_id (array_like, optional) – Track ID at each points

  • 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”.

  • centering (str, optional) –

    • “forward” gives the speed based on the track point and the following track point. The last point of each track will be NaN

    • ”backward” gives the speed based on the track point and the previous track point. The first point of each track will be NaN

    • ”centre” gives the speed based on the centred difference of track points. The first and last points of each track will be NaN

    • ”adaptive” gives the same as centred, but fills in the first point of each track with the forward difference, and the last point of each track with the backward difference

Return type:

xarray.DataArray