huracanpy.utils.geography.get_country#
- huracanpy.utils.geography.get_country(lon, lat, resolution='10m', crs=None)[source]#
Detect the country each point is over
- Parameters:
lon (float or array_like)
lat (float or array_like)
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)
- 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.ndarrayif lon/lat are floats- Return type:
array_like