View source: R/ms_download_ws_attr.R
ms_download_ws_attr | R Documentation |
Download MacroSheds watershed attribute data for all sites. Choose between temporally explicit spatial summaries, or summaries across both time and space. For some variables that are not time-varying, these are the same.
ms_download_ws_attr(
macrosheds_root,
dataset = "summaries",
quiet = FALSE,
version = "latest",
omit_climate_data = FALSE,
skip_existing = TRUE,
timeout = 300
)
macrosheds_root |
character. Directory where watershed attribute files will be downloaded.
If this directory does not exist, it will be created. Does not have to be the same
as |
dataset |
character. This function can download each of the four collections of watershed attribute data provided by MacroSheds.
Once downloaded, data can be loaded into R with |
quiet |
logical. If TRUE, some messages will be suppressed. |
version |
numeric or "latest". The MacroSheds dataset version to download. |
omit_climate_data |
logical. Ignored unless |
skip_existing |
logical. If FALSE, dataset components already downloaded to macrosheds_root will be overwritten. If TRUE, these will be skipped. |
timeout |
integer. Temporarily overrides |
Returns NULL. Downloads watershed attribute data to the
directory specified by macrosheds_root
. For full documentation, visit
EDI.
Wes Slaughter, wslaughter@berkeley.edu
Mike Vlah, vlahm13@gmail.com
Spencer Rhea
ms_download_core_data()
, ms_load_product()
ms_download_ws_attr(macrosheds_root = 'data/macrosheds', dataset = 'time series')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.