Are the points in the ocean (or land)?

is_ocean(lon, lat, hires = FALSE)

is_land(lon, lat, hires = FALSE)

Arguments

lon

Vector of longitudes.

lat

Vector of latitudes.

hires

Boolean. Use high resolution mask to compute ocean/land?

Value

A logical vector. For is_ocean, TRUE when the point is on water, FALSE for land or NA. Similiar for is_land.