NERACOOS makes a wide variety of data freely available. Here we provide simple tools for accessing their ERDDAP server.
Use the remotes package to install directly from github.
remotes::install("BigelowLab/nerddap)
NERACOOS serves data for a number of buoys.
suppressPackageStartupMessages({
library(nerddap)
library(sf)
library(dplyr)
library(rnaturalearth)
})
## Warning: package 'sf' was built under R version 4.3.2
lut = buoy_lut(form = "sf") |>
print()
## Simple feature collection with 6 features and 3 fields
## Geometry type: POINT
## Dimension: XY
## Bounding box: xmin: -70.4277 ymin: 42.3233 xmax: -65.9267 ymax: 44.10163
## Geodetic CRS: WGS 84
## # A tibble: 6 × 4
## name longname id geometry
## * <chr> <chr> <chr> <POINT [°]>
## 1 wms Western Maine Shelf B01 (-70.4277 43.18065)
## 2 cms Central Maine Shelf E01 (-69.3578 43.7148)
## 3 pb Penobscot Bay F01 (-68.99689 44.05495)
## 4 ems Eastern Maine Shelf I01 (-68.11359 44.10163)
## 5 jb Jordan Basin M01 (-67.88029 43.49041)
## 6 nec Northeast Channel N01 (-65.9267 42.3233)
coast = rnaturalearth::ne_coastline("large", returnclass = "sf")
ex = 2
plot(lut['id'], pch = lut$id, axes = TRUE,
reset = FALSE, expandBB = rep(ex, 4),
main = "NERACOOS ERDDAP Buoys")
plot(sf::st_geometry(coast), add = TRUE)