get_NOAA | R Documentation |
Retrieves data from the NOAA World Ocean Atlas.
get_NOAA(var, spat_res, av_period, cache = FALSE)
url_parser(var, spat_res, av_period, cache = FALSE)
var |
The chemical or physical variable of interest (possible choices:
|
spat_res |
Spatial resolution, either 1 or 5 degree grid-cells (numeric) . |
av_period |
Temporal resolution, either |
cache |
Caching the extracted NOAA file in the package's |
Functions to retrieve data from the
NOAA World Ocean Atlas
. Data is an 3D array (longitude, latitude, and depth) and is loaded as a
stars
object. Check NOAA_data
for available
variables, respective units and their citations. The function can automatically
cache the extracted files (default: cache = FALSE
). The cached file will
then reside in the package's extdata
directory.
stars
object or path.
Introduction to the stars package
# path to NOAA server or local data source
url_parser("oxygen", 1, "annual")
if (interactive()) {
# retrieve NOAA data
get_NOAA("oxygen", 1, "annual")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.