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', '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('42001', 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 NaN NaT 20 NaN 2025-01-22 00:47:00+00:00 2025-01-22 00:50:00+00:00
1 NaN NaT 19 NaN 2025-01-22 00:33:00+00:00 2025-01-22 00:40:00+00:00
2 NaN NaT 19 NaN 2025-01-22 00:24:00+00:00 2025-01-22 00:30:00+00:00
3 NaN NaT 19 NaN 2025-01-22 00:16:00+00:00 2025-01-22 00:20:00+00:00
4 NaN NaT 21 NaN 2025-01-22 00:06:00+00:00 2025-01-22 00:10:00+00:00


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

Gallery generated by Sphinx-Gallery