View source: R/ms_download_core_data.R
ms_download_core_data | R Documentation |
Download the macrosheds core datasets of stream chemistry, stream discharge, stream solute flux, precipitation, precipitation chemistry, precipitation solute flux, annual solute loads, ws_boundary, stream_gauge_locations, and precip_gauge_locations. Not all products are available at all sites, but all products available for the selected domains will be downloaded.
ms_download_core_data(
macrosheds_root,
networks,
domains,
version = "latest",
skip_existing = TRUE,
quiet = FALSE
)
macrosheds_root |
character. Directory where macrosheds data files will be downloaded.
If this directory does not exist, it will be created. The |
networks |
character vector. macrosheds networks that will be downloaded.
Either a single network, vector of networks, or 'all'. Either |
domains |
character vector. macrosheds domains that will be downloaded.
Either a single domain, vector of domains, or 'all'. Either |
version |
numeric or "latest". The MacroSheds dataset version to download. |
skip_existing |
logical. If FALSE, dataset components already downloaded to macrosheds_root will be overwritten. If TRUE, these will be skipped. |
quiet |
logical. If TRUE, some messages will be suppressed. |
The core time-series dataset is approximately 6 GiB uncompressed.
Downloads all core data for selected domains to the
directory specified by macrosheds_root
. Site datasets are arranged according to the following
structure: domain/prodname/site_code.feather. For definitions of these terms as used by
MacroSheds, see glossary.txt on MacroSheds EDI.
Spencer Rhea
Mike Vlah, vlahm13@gmail.com
Wes Slaughter
ms_load_sites()
, ms_load_variables()
, ms_load_product()
, ms_load_spatial_product()
ms_download_core_data(macrosheds_root = 'data/macrosheds',
domains = c('niwot', 'hjandrews'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.