NDBC Buoy Data Request (of any type)

The NDBC keeps a 40-day recent rolling file for each buoy. This examples shows how to access the other types of data available for a buoy.

from siphon.simplewebservice.ndbc import NDBC

Request the types of data available from a given buoy.

{'txt': 'standard meteorological data', 'spec': 'spectral wave summaries', 'data_spec': 'raw spectral wave data', 'swdir': 'spectral wave data (alpha1)', 'swdir2': 'spectral wave data (alpha2)', 'swr1': 'spectral wave data (r1)', 'swr2': 'spectral wave data (r2)', 'supl': 'supplemental measurements data'}

Get a pandas data frame of all of the observations, meteorological data is the default observation set to query.

df = NDBC.realtime_observations('42012', data_type='supl')
df.head()
hourly_low_pressure hourly_low_pressure_time hourly_high_wind hourly_high_wind_direction hourly_high_wind_time time
0 1018.4 2026-06-22 20:18:00+00:00 9.0 240.0 2026-06-22 20:18:00+00:00 2026-06-22 20:20:00+00:00
1 1018.4 2026-06-22 20:02:00+00:00 9.0 240.0 2026-06-22 20:08:00+00:00 2026-06-22 20:10:00+00:00
2 1018.3 2026-06-22 19:58:00+00:00 8.0 240.0 2026-06-22 19:59:00+00:00 2026-06-22 20:00:00+00:00
3 1018.6 2026-06-22 19:49:00+00:00 8.0 240.0 2026-06-22 19:47:00+00:00 2026-06-22 19:50:00+00:00
4 1018.5 2026-06-22 19:40:00+00:00 9.0 250.0 2026-06-22 19:32:00+00:00 2026-06-22 19:40:00+00:00


Total running time of the script: (0 minutes 0.810 seconds)

Gallery generated by Sphinx-Gallery