buoy {ocedata}R Documentation

Measurements made at a buoy off Halifax

Description

buoy is a data frame holding hourly observations made between March 3 and April 18 of 2014, at the Environment Canada 3-metre discus buoy situated at (44.502N 63.403W) near Halifax Harbour.

Usage

data(buoy, package="ocedata")

Details

The contents are as follows; other items in the original data file are ignored.

The code to create the dataset is given below.

d <- read.table("44258.txt", stringsAsFactors=FALSE, skip=2)
t <- ISOdatetime(d[,1], d[,2], d[,3], d[,4], d[,5], 0, tz="UTC")
o <- order(t)
# handle missing data
d[d == "MM"] <- NA
# put oldest first
t <- t[o]
d <- d[o,]
direction <- as.numeric(d[,6])
wind <- as.numeric(d[,7])
gust <- as.numeric(d[,8])[o]
height <- as.numeric(d[,9])
period <- as.numeric(d[,10])
pa <- as.numeric(d[,13])
Ta <- as.numeric(d[,14])
Tw <- as.numeric(d[,15])

References

  1. https://www.ndbc.noaa.gov/data/realtime2/

  2. https://www.ndbc.noaa.gov/NDBCHandbookofAutomatedDataQualityControl2009.pdf

  3. https://www.ndbc.noaa.gov/measdes.shtml

  4. ⁠https://www.ndbc.noaa.gov/station_page.php?station=44258⁠ (link seen to time out on March 13, 2022).

Examples

data(buoy, package="ocedata")
plot(buoy$time, buoy$wind, ylab="Wind Speed [m/s]")
plot(buoy$time, buoy$height, ylab="Wave height [m]")
plot(buoy$time, buoy$period, ylab="Wave period [s]")


[Package ocedata version 0.2.2 Index]