Skip to content

Buoys

NOAA NDBC buoy stations, latest observations and recent station histories for marine analysis

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/buoys/index.md to help me query Buoys with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

Discover stations with meteorological data

Example output Β· captured
Connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20
Result Β· first 5 rows
station_id name latitude longitude
14049 NULL -12 65
15001 Gavotte -10 -10
15006 Valse -6 -10
15009 NULL 0 -3.051
22101 NULL 37.23 126.02

Quick start

Choose where to run Buoys, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach the release directly

Downloads the latest release for your platform and caches it locally.

ATTACH 'buoys' AS buoys (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/vgi-buoys'
);

3. Run a query

query.sql
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20
More example queries β†’
Technical details
Verified connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach the release directly

Uses the verified release each time you attach the connector.

ATTACH 'buoys' AS buoys (
  TYPE vgi,
  LOCATION 'github-auto://Query-farm/[email protected]'
);

Overview

NOAA National Data Buoy Center stations, latest marine observations and about 45 days of recent station history (wind, waves, pressure, temperatures, visibility, water level) as SQL tables in metric units. No API key needed.

Catalog

Everything buoys exposes once attached β€” read straight from the worker's released build.

buoys 1 schema
main 2 tables Β· 2 functions

NOAA NDBC buoy station directory, latest observations, recent station histories and a measurement unit reference.

Schema examples (7)
Examples (7)

Discover stations with meteorological data

SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20;
Result Β· first 5 rows
station_id name latitude longitude
14049 NULL -12 65
15001 Gavotte -10 -10
15006 Valse -6 -10
15009 NULL 0 -3.051
22101 NULL 37.23 126.02

List directory stations flagged has_met that have no row in the latest observations file, with owner and station type

SELECT s.station_id, s.name, s.owner, s.station_type
FROM buoys.main.stations AS s ANTI
JOIN buoys.main.latest_observations() AS o USING (station_id)
WHERE s.has_met
ORDER BY s.station_id;

Find the largest reported seas and their wave periods

SELECT station_id, time, wave_height_m, dominant_period_s
FROM buoys.main.latest_observations()
WHERE wave_height_m IS NOT NULL
ORDER BY wave_height_m DESC, station_id
LIMIT 10;

Name the 10 stations reporting the largest significant wave heights in the latest file, with owner, station type and dominant period

SELECT o.station_id, s.name, s.owner, s.station_type, o.time,
  o.wave_height_m, o.dominant_period_s
FROM buoys.main.latest_observations() AS o
JOIN buoys.main.stations AS s USING (station_id)
WHERE o.wave_height_m IS NOT NULL
ORDER BY o.wave_height_m DESC, o.station_id
LIMIT 10;
3 more examples

Inspect the latest measured waves and winds off Boston

SELECT time, wind_speed_mps, wave_height_m, dominant_period_s
FROM buoys.main.observations('44013')
WHERE wave_height_m IS NOT NULL
ORDER BY time DESC
LIMIT 24;

Summarise the 7 most recent days (session time zone) at buoy 44013 (daily peak wave height, mean wind speed, report count) with the directory name and coordinates that recent files omit

SELECT s.station_id, s.name, s.latitude, s.longitude,
  date_trunc('day', o.time) AS obs_day,
  max(o.wave_height_m) AS max_wave_height_m,
  avg(o.wind_speed_mps) AS mean_wind_speed_mps, count(*) AS reports
FROM buoys.main.observations('44013') AS o
JOIN buoys.main.stations AS s USING (station_id)
GROUP BY ALL
ORDER BY obs_day DESC
LIMIT 7;

Show each non-missing measurement in station 46026's latest report as one row, with its output unit, NDBC source field, source unit and conversion scale

SELECT v.column_name, v.value, m.output_unit, m.source_field, m.source_unit,
  m.scale
FROM (UNPIVOT buoys.main.latest_observations(station_id := '46026') ON COLUMNS(* EXCLUDE (station_id, time, latitude, longitude, source_url, fetched_at)) INTO NAME column_name VALUE value) AS v
JOIN buoys.main.measurements AS m USING (column_name)
ORDER BY v.column_name;
Tables
measurements 2 examples5 cols

NDBC measurement fields, source units and conversion factors

Columns
column_namenot null VARCHAR
Output measurement column.
source_fieldnot null VARCHAR
NDBC text header field.
source_unitnot null VARCHAR
Unit in the source NDBC data file.
output_unitnot null VARCHAR
Unit in the worker result.
scalenot null DOUBLE
Dimensionless conversion factor: multiply source values by this ratio to obtain output values.
ConstraintsPRIMARY KEY (column_name)
Examples (2)

NDBC measurement fields, source units and conversion factors

SELECT column_name, source_unit, output_unit, scale
FROM buoys.main.measurements
WHERE column_name = 'visibility_m';

Show each non-missing measurement in station 46026's latest report as one row, with its output unit, NDBC source field, source unit and conversion scale

SELECT v.column_name, v.value, m.output_unit, m.source_field, m.source_unit,
  m.scale
FROM (UNPIVOT buoys.main.latest_observations(station_id := '46026') ON COLUMNS(* EXCLUDE (station_id, time, latitude, longitude, source_url, fetched_at)) INTO NAME column_name VALUE value) AS v
JOIN buoys.main.measurements AS m USING (column_name)
ORDER BY v.column_name;
Link
stations 3 examples14 cols

Active NDBC station directory with locations, owners and instrument capability flags

Columns
station_idnot null VARCHAR
NDBC station identifier in lowercase.
name VARCHAR
Station name.
latitude DOUBLE
Station latitude in decimal degrees.
longitude DOUBLE
Station longitude in decimal degrees.
elevation_m DOUBLE
Site elevation in metres above mean sea level when supplied.
owner VARCHAR
Organization responsible for the station.
program VARCHAR
NDBC or partner program.
station_type VARCHAR
NOAA station type, such as buoy, fixed or oilrig.
has_met BOOLEAN
Whether NDBC lists meteorological observations for this station.
has_currents BOOLEAN
Whether NDBC lists current observations; this worker reads standard meteorological data only.
has_water_quality BOOLEAN
Whether NDBC lists water-quality observations.
has_dart BOOLEAN
Whether this is a DART tsunami station.
source_url VARCHAR
Exact NOAA NDBC source URL.
fetched_at TIMESTAMP WITH TIME ZONE
UTC retrieval time; use time to assess measurement freshness.
ConstraintsPRIMARY KEY (station_id)
Examples (3)

Discover stations with meteorological data

SELECT station_id, name
FROM buoys.main.stations
WHERE has_met
ORDER BY station_id;

List directory stations flagged has_met that have no row in the latest observations file, with owner and station type

SELECT s.station_id, s.name, s.owner, s.station_type
FROM buoys.main.stations AS s ANTI
JOIN buoys.main.latest_observations() AS o USING (station_id)
WHERE s.has_met
ORDER BY s.station_id;
SELECT station_id, name, latitude, longitude
FROM buoys.main.stations()
WHERE has_met
ORDER BY station_id
LIMIT 20;
Result Β· first 5 rows
station_id name latitude longitude
14049 NULL -12 65
15001 Gavotte -10 -10
15006 Valse -6 -10
15009 NULL 0 -3.051
22101 NULL 37.23 126.02
Link
Table functions
latest_observations (station_id := VARCHAR) 2 examples

Read the latest available standard meteorological observations across NDBC stations

Named arguments
station_id := VARCHAR
Optional station ID; empty string (default) returns all stations. Filtering happens after one network-wide file download. Β· default ""
Returns columns
station_id VARCHAR
NDBC station ID in lowercase; retain as text, including leading zeroes.
time TIMESTAMPTZ
UTC observation timestamp supplied by NDBC; measurements may be stale.
latitude DOUBLE
Observation latitude in decimal degrees; NULL when absent from a station history file.
longitude DOUBLE
Observation longitude in decimal degrees; NULL when absent from a station history file.
wind_direction_deg DOUBLE
Direction wind comes from, clockwise degrees from true north. Missing MM becomes NULL.
wind_speed_mps DOUBLE
Measured wind speed in metres per second, at the station's anemometer height. Missing MM becomes NULL.
wind_gust_mps DOUBLE
Wind gust speed in metres per second. Missing MM becomes NULL.
wave_height_m DOUBLE
Significant wave height in metres; mean of the highest third of sampled waves. Missing MM becomes NULL.
dominant_period_s DOUBLE
Dominant wave period in seconds, at maximum wave energy. Missing MM becomes NULL.
average_period_s DOUBLE
Average wave period in seconds. Missing MM becomes NULL.
wave_direction_deg DOUBLE
Direction waves at the dominant period come from, degrees from true north. Missing MM becomes NULL.
pressure_hpa DOUBLE
Sea-level atmospheric pressure in hectopascals. Missing MM becomes NULL.
pressure_tendency_hpa DOUBLE
Signed pressure change over the preceding three hours, in hectopascals. Missing MM becomes NULL.
air_temperature_c DOUBLE
Air temperature in degrees Celsius. Missing MM becomes NULL.
water_temperature_c DOUBLE
Water temperature in degrees Celsius. Missing MM becomes NULL.
dew_point_c DOUBLE
Dew point in degrees Celsius. Missing MM becomes NULL.
visibility_m DOUBLE
Visibility in metres, converted from source nautical miles. Missing MM becomes NULL.
water_level_m DOUBLE
Water level in metres relative to MLLW, converted from source feet. Missing MM becomes NULL.
source_url VARCHAR
Exact NOAA NDBC source URL.
fetched_at TIMESTAMPTZ
UTC retrieval time; use time to assess measurement freshness.
Examples (2)

Find the largest reported seas and their wave periods

SELECT station_id, time, wave_height_m, dominant_period_s
FROM buoys.main.latest_observations()
WHERE wave_height_m IS NOT NULL
ORDER BY wave_height_m DESC, station_id
LIMIT 10;

Name the 10 stations reporting the largest significant wave heights in the latest file, with owner, station type and dominant period

SELECT o.station_id, s.name, s.owner, s.station_type, o.time,
  o.wave_height_m, o.dominant_period_s
FROM buoys.main.latest_observations() AS o
JOIN buoys.main.stations AS s USING (station_id)
WHERE o.wave_height_m IS NOT NULL
ORDER BY o.wave_height_m DESC, o.station_id
LIMIT 10;
Link
observations (station_id VARCHAR, end_time := VARCHAR, start_time := VARCHAR) 2 examples

Read the recent standard meteorological history for a buoy or land station

Positional arguments
station_id VARCHAR
Required NDBC station ID, case-insensitive; e.g. 44013 or tplm2.
Named arguments
end_time := VARCHAR
Optional inclusive UTC ISO upper bound; empty string means unbounded within the source file. Does not fetch archived data. Β· default ""
start_time := VARCHAR
Optional inclusive UTC ISO lower bound, e.g. 2026-01-01T00:00:00Z; empty string means unbounded within the source file. Β· default ""
Returns columns
station_id VARCHAR
NDBC station ID in lowercase; retain as text, including leading zeroes.
time TIMESTAMPTZ
UTC observation timestamp supplied by NDBC; measurements may be stale.
latitude DOUBLE
Observation latitude in decimal degrees; NULL when absent from a station history file.
longitude DOUBLE
Observation longitude in decimal degrees; NULL when absent from a station history file.
wind_direction_deg DOUBLE
Direction wind comes from, clockwise degrees from true north. Missing MM becomes NULL.
wind_speed_mps DOUBLE
Measured wind speed in metres per second, at the station's anemometer height. Missing MM becomes NULL.
wind_gust_mps DOUBLE
Wind gust speed in metres per second. Missing MM becomes NULL.
wave_height_m DOUBLE
Significant wave height in metres; mean of the highest third of sampled waves. Missing MM becomes NULL.
dominant_period_s DOUBLE
Dominant wave period in seconds, at maximum wave energy. Missing MM becomes NULL.
average_period_s DOUBLE
Average wave period in seconds. Missing MM becomes NULL.
wave_direction_deg DOUBLE
Direction waves at the dominant period come from, degrees from true north. Missing MM becomes NULL.
pressure_hpa DOUBLE
Sea-level atmospheric pressure in hectopascals. Missing MM becomes NULL.
pressure_tendency_hpa DOUBLE
Signed pressure change over the preceding three hours, in hectopascals. Missing MM becomes NULL.
air_temperature_c DOUBLE
Air temperature in degrees Celsius. Missing MM becomes NULL.
water_temperature_c DOUBLE
Water temperature in degrees Celsius. Missing MM becomes NULL.
dew_point_c DOUBLE
Dew point in degrees Celsius. Missing MM becomes NULL.
visibility_m DOUBLE
Visibility in metres, converted from source nautical miles. Missing MM becomes NULL.
water_level_m DOUBLE
Water level in metres relative to MLLW, converted from source feet. Missing MM becomes NULL.
source_url VARCHAR
Exact NOAA NDBC source URL.
fetched_at TIMESTAMPTZ
UTC retrieval time; use time to assess measurement freshness.
Examples (2)

Inspect the latest measured waves and winds off Boston

SELECT time, wind_speed_mps, wave_height_m, dominant_period_s
FROM buoys.main.observations('44013')
WHERE wave_height_m IS NOT NULL
ORDER BY time DESC
LIMIT 24;

Summarise the 7 most recent days (session time zone) at buoy 44013 (daily peak wave height, mean wind speed, report count) with the directory name and coordinates that recent files omit

SELECT s.station_id, s.name, s.latitude, s.longitude,
  date_trunc('day', o.time) AS obs_day,
  max(o.wave_height_m) AS max_wave_height_m,
  avg(o.wind_speed_mps) AS mean_wind_speed_mps, count(*) AS reports
FROM buoys.main.observations('44013') AS o
JOIN buoys.main.stations AS s USING (station_id)
GROUP BY ALL
ORDER BY obs_day DESC
LIMIT 7;
Link

Try these queries

List directory stations flagged has_met that have no row in the latest observations file, with owner and station type

SELECT s.station_id, s.name, s.owner, s.station_type
FROM buoys.main.stations AS s ANTI
JOIN buoys.main.latest_observations() AS o USING (station_id)
WHERE s.has_met
ORDER BY s.station_id

Uses stationslatest_observations

Find the largest reported seas and their wave periods

SELECT station_id, time, wave_height_m, dominant_period_s
FROM buoys.main.latest_observations()
WHERE wave_height_m IS NOT NULL
ORDER BY wave_height_m DESC, station_id
LIMIT 10

Uses latest_observations

Name the 10 stations reporting the largest significant wave heights in the latest file, with owner, station type and dominant period

SELECT o.station_id, s.name, s.owner, s.station_type, o.time,
  o.wave_height_m, o.dominant_period_s
FROM buoys.main.latest_observations() AS o
JOIN buoys.main.stations AS s USING (station_id)
WHERE o.wave_height_m IS NOT NULL
ORDER BY o.wave_height_m DESC, o.station_id
LIMIT 10

Uses latest_observationsstations

Inspect the latest measured waves and winds off Boston

SELECT time, wind_speed_mps, wave_height_m, dominant_period_s
FROM buoys.main.observations('44013')
WHERE wave_height_m IS NOT NULL
ORDER BY time DESC
LIMIT 24

Uses observations

Summarise the 7 most recent days (session time zone) at buoy 44013 (daily peak wave height, mean wind speed, report count) with the directory name and coordinates that recent files omit

SELECT s.station_id, s.name, s.latitude, s.longitude,
  date_trunc('day', o.time) AS obs_day,
  max(o.wave_height_m) AS max_wave_height_m,
  avg(o.wind_speed_mps) AS mean_wind_speed_mps, count(*) AS reports
FROM buoys.main.observations('44013') AS o
JOIN buoys.main.stations AS s USING (station_id)
GROUP BY ALL
ORDER BY obs_day DESC
LIMIT 7

Uses observationsstations

NDBC measurement fields, source units and conversion factors

SELECT column_name, source_unit, output_unit, scale
FROM buoys.main.measurements
WHERE column_name = 'visibility_m'

Uses measurements

2 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • List column_name, source_unit, output_unit and scale for visibility_m in the measurements reference table.
  • Using buoys.main.stations, list the first five station IDs and names ordered by station ID.
  • Using buoys.main.latest_observations, list the five stations with highest nonmissing wind_speed_mps, ordered by wind_speed_mps descending then station_id.
  • Using buoys.main.observations, list the five most recent nonmissing wave heights for station 44013, showing time and wave_height_m.

Buoys is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.