Git Product home page Git Product logo

nerddap's Introduction

nerddap

NERACOOS makes a wide variety of data freely available. Here we provide simple tools for accessing their ERDDAP server.

Requirements

R v4.1+

rlang

readr

dplyr

sf

xml2

httr

Installation

Use the remotes package to install directly from github.

remotes::install("BigelowLab/nerddap)

Buoys

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)

nerddap's People

Contributors

btupper avatar

Watchers

 avatar  avatar

Forkers

jevanilla

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.