huracanpy.info.country#

huracanpy.info.country(lon, lat, resolution='10m', crs=None)[source]#

Detect the country each point is over

Parameters:
  • lon (float or array_like) – Longitude and latitude points

  • lat (float or array_like) – Longitude and latitude points

  • resolution (str) –

    The resolution of the Land/Sea outlines dataset to use. One of

    • 10m (1:10,000,000)

    • 50m (1:50,000,000)

    • 110m (1:110,000,000)

  • crs (cartopy.crs.CRS, optional) – Coordinate reference system of the input data. If None, it is assumed to be Geodetic

Returns:

Array of country names (or empty string for no country) for each lon/lat point. Should return the same type of array as the input lon/lat, or a length 1 numpy.ndarray if lon/lat are floats

Return type:

array_like