huracanpy.utils.time.get_season#
- huracanpy.utils.time.get_season(track_id, lat, time, convention='long')[source]#
- Parameters:
track_id (xarray.DataArray)
lat (xarray.DataArray)
time (xarray.DataArray)
convention (str) –
‘short’ : In the southern hemisphere, the season n corresponds to July n-1 to June n
’long’ : In the southern hemisphere, the season from July n-1 to June n is named “(n-1)n”
- Raises:
NotImplementedError – If convention given is not ‘short’ or ‘long’
- Returns:
The season series. You can append it to your tracks by running tracks[“season”] = get_season(tracks.track_id, tracks.lat, tracks.time)
- Return type: