- Notifications
You must be signed in to change notification settings - Fork15
R client for working with ERDDAP servers
License
Unknown, MIT licenses found
Licenses found
ropensci/rerddap
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
rerddap is a general purpose R client for working with ERDDAP servers.
Package Docs:https://docs.ropensci.org/rerddap/
From CRAN
install.packages("rerddap")Or development version from GitHub
remotes::install_github("ropensci/rerddap")
library("rerddap")Some users may experience an installation error, stating to install 1 or morepackages, e.g., you may needDBI, in which case do, for example,install.packages("DBI") before installingrerddap.
ERDDAP is a server built on top of OPenDAP, which serves some NOAA data. You can get gridded data (griddap (https://upwell.pfeg.noaa.gov/erddap/griddap/documentation.html)), which lets you query from gridded datasets, or table data (tabledap (https://upwell.pfeg.noaa.gov/erddap/tabledap/documentation.html)) which lets you query from tabular datasets. In terms of how we interface with them, there are similarities, but some differences too. We try to make a similar interface to both data types inrerddap.
rerddap supports NetCDF format, and is the default when using thegriddap() function. NetCDF is a binary file format, and will have a much smaller footprint on your disk than csv. The binary file format means it's harder to inspect, but thencdf4 package makes it easy to pull data out and write data back into a NetCDF file. Note the the file extension for NetCDF files is.nc. Whether you choose NetCDF or csv for small files won't make much of a difference, but will with large files.
Data files downloaded are cached in a single directory on your machine determined by thehoardr package. When you usegriddap() ortabledap() functions, we construct a MD5 hash from the base URL, and any query parameters - this way each query is separately cached. Once we have the hash, we look in the cache directory for a matching hash. If there's a match we use that file on disk - if no match, we make a http request for the data to the ERDDAP server you specify.
You can get a data.frame of ERDDAP servers using the functionservers(). Most I think serve some kind of NOAA data, but there are a few that aren't NOAA data. If you know of more ERDDAP servers, send a pull request, or let us know.
- Pleasereport any issues or bugs.
- License: MIT
- Get citation information for
rerddapin R doingcitation(package = 'rerddap') - Please note that this package is released with aContributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
About
R client for working with ERDDAP servers
Topics
Resources
License
Unknown, MIT licenses found
Licenses found
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.