huracanpy.info.is_ocean#
- huracanpy.info.is_ocean(lon, lat, resolution='10m', crs=None)[source]#
Detect whether each point is over ocean
- 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 “Land” or “Ocean” 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[bool]