huracanpy.calc.apex_vals#

huracanpy.calc.apex_vals(tracks, variable, track_id, stat='max')[source]#

Shows the attribute for the extremum point of each track

Parameters:
  • tracks (xarray.DataSet)

  • variable (array_like) – The extremum variable

  • track_id (xarray.DataArray)

  • stat (str, optional) – Type of extremum. Can be “min” or “max”. The default is “max”.

Raises:

NotImplementedError – If another value than “min” and “max” is given to stat

Returns:

Dataset containing only extremum points, with track_id as index.

Return type:

xarray.Dataset