huracanpy.utils.geography.get_basin#
- huracanpy.utils.geography.get_basin(lon, lat, convention='WMO', 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
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: