huracanpy.info.basin#

huracanpy.info.basin(lon, lat, convention='WMO-TC', crs=None)[source]#

Function to determine the basin of each point, according to the selected convention.

Parameters:
  • lon (xarray.DataArray) – Longitude series

  • lat (xarray.DataArray) – Latitude series

  • convention (str) –

    Name of the basin convention you want to use.
    • WMO-TC - WMO defined tropical cyclone basins

    • Sainsbury2022JCLI - Definitions from

      (https://doi.org/10.1175/JCLI-D-21-0712.1) North Atlantic split up into:

      • Main development region (MDR)

      • Subtropical development region (SUB)

      • Western basin / Caribbean sea (WEST)

    • Sainsbury2022MWR - Definitions from

      (https://doi.org/10.1175/MWR-D-22-0111.1). Extratropical transition in North Atlantic divided into:

      • Europe

      • NoEurope

  • crs (cartopy.crs.CRS, optional) – The coordinate reference system of the lon, lat inputs. The basins are defined in PlateCarree (-180, 180), so this will transform lon/lat to this projection before checking the basin. If None is given, it will use cartopy.crs.Geodetic which is essentially the same, but allows the longitudes to be defined in ranges broader than -180, 180

Returns:

The basin series. You can append it to your tracks by running tracks[“basin”] = get_basin(tracks)

Return type:

xarray.DataArray