API
BuoyData.NDBC.available — Function
available(:spectrum; http_kwargs...)
available(:omnidirectional_spectrum; http_kwargs...)Return a DataFrame listing buoy-year combinations where spectral files exist. For type=:spectrum (default; directional), all five parameters are checked (swden, swdir, swdir2, swr1, swr2). For type=:omnidirectional_spectrum, only swden is used. When a buoy is provided, returns only rows for that buoy.
available(buoy, :spectrum; http_kwargs...)
available(buoy, :omnidirectional_spectrum; http_kwargs...)See available() for details.
BuoyData.NDBC.metadata — Function
metadata(buoy; http_kwargs...)Fetch station metadata for a buoy, including latitude, longitude, water depth, and watch circle radius. Values are returned with Unitful units.
BuoyData.NDBC.read — Function
read(file, parameter=nothing)Read a local NDBC data file (.txt or .txt.gz). If parameter is not provided, it is inferred from the filename.
BuoyData.NDBC.read_netcdf — Function
read_netcdf(file, parameter=nothing)Read a local NDBC THREDDS data file (.nc). If parameter is not provided, it is inferred from the filename.
BuoyData.NDBC.request — Function
request(buoy, year, b_file=false, type=:spectrum; http_kwargs...)Download and parse the wave spectrum for a buoy and year. Returns an AxisArray of WaveSpectra.Spectrum or WaveSpectra.OmnidirectionalSpectrum structs indexed by time. type=:spectrum (default) returns the full directional WaveSpectra.Spectrum struct. type=:omnidirectional_spectrum returns the single direction WaveSpectra.OmnidirectionalSpectrum struct. source=:historical (default) pulls data from NDBC's historical archive (.txt.gz files) source=:thredds pulls data from NDBC's THREDDS server, containing both historical and real time data (.nc files)