Skip to contents

Queries the Open-Meteo Marine Weather API for hourly significant wave height, wave period, wind-wave and swell components at a given lat/lon. Returns an empty tibble on error (soft dependency — never aborts the pipeline).

Source: https://open-meteo.com/en/docs/marine-weather-api. Underlying models are DWD EWAM (European) and GWAM (global), ~25 km grid.

Usage

fetch_open_meteo_marine(lat, lon, station_id, forecast_days = 7, timeout = 30)

Arguments

lat

Latitude in decimal degrees.

lon

Longitude in decimal degrees.

station_id

Character station identifier (e.g. "M2").

forecast_days

Integer number of forecast days (1-8 for marine, default 7).

timeout

Numeric request timeout in seconds (default 30).

Value

Tibble with columns: station_id, time, wave_height_m, wave_period_s, wind_wave_height_m, swell_wave_height_m, forecast_fetched_at. Empty tibble on error.

Examples

if (FALSE) { # \dontrun{
fetch_open_meteo_marine(51.22, -9.99, "M2", forecast_days = 1)
} # }