Learn R Programming

rnoaa (version 0.4.2)

buoy: Get NOAA buoy data from the National Buoy Data Center

Description

Get NOAA buoy data from the National Buoy Data Center

Usage

buoy(dataset, buoyid, year = NULL, datatype = NULL, ...)

buoys(dataset, ...)

Arguments

dataset
(character) Dataset name to query. See below for Details. Required
buoyid
(integer) Buoy ID. Required
year
(integer) Year of data collection
datatype
(character) Data type, one of 'c', 'cc', 'p', 'o'
...
Curl options passed on to GET (optional)

Details

Functions:
  • buoys Get available buoys given a dataset name
  • buoy Get data given some combination of dataset name, buoy ID, year, and datatype
Options for the dataset parameter. One of:
  • adcp - Acoustic Doppler Current Profiler data
  • adcp2 - MMS Acoustic Doppler Current Profiler data
  • cwind - Continuous Winds data
  • dart - Deep-ocean Assessment and Reporting of Tsunamis data
  • mmbcur - Marsh-McBirney Current Measurements data
  • ocean - Oceanographic data
  • pwind - Peak Winds data
  • stdmet- Standard Meteorological data
  • swden - Spectral Wave Density data with Spectral Wave Direction data
  • wlevel - Water Level data

References

http://www.ndbc.noaa.gov/ and http://dods.ndbc.noaa.gov/

Examples

Run this code
## Not run: ------------------------------------
# # Get available buoys
# buoys(dataset = 'cwind')
# 
# # Get data for a buoy
# ## if no year or datatype specified, we get the first file
# buoy(dataset = 'cwind', buoyid = 46085)
# 
# # Including specific year
# buoy(dataset = 'cwind', buoyid = 41001, year = 1999)
# 
# # Including specific year and datatype
# buoy(dataset = 'cwind', buoyid = 41001, year = 2008, datatype = "cc")
# buoy(dataset = 'cwind', buoyid = 41001, year = 2008, datatype = "cc")
# 
# # Other datasets
# buoy(dataset = 'ocean', buoyid = 42856)
# 
# # curl debugging
# library('httr')
# buoy(dataset = 'cwind', buoyid = 46085, config=verbose())
## ---------------------------------------------

Run the code above in your browser using DataLab