huracanpy.calc.time_from_apex#

huracanpy.calc.time_from_apex(time, track_ids, intensity_var, stat='max')[source]#

The time relative to a maxima/minima in a given variable for each individual track

>>> time_from_apex(tracks.time, tracks.track_id, tracks.wind, stat="max")
Parameters:
  • time (array_like) – Time for each point

  • track_ids (xarray.DataArray) – Track ID for each point

  • intensity_var (array_like) – The variable used to find the apex points

  • stat (str, optional) – Take either the maxima (“max”) or minima (“min”) of intensity_var. Default is “max”

Return type:

xarray.DataArray