downloadCAMELS: Download CAMELS files

View source: R/downloadCAMELS.R

downloadCAMELSR Documentation

Download CAMELS files

Description

Function does not download all available files including basin information, model output, and CAMELS documentation. See https://gdex.ucar.edu/dataset/camels.html.

Usage

downloadCAMELS(
  dir,
  unzip = FALSE,
  primary_files = TRUE,
  daymet_output = TRUE,
  maurer_output = TRUE,
  NLDAS_output = TRUE,
  shapefiles = TRUE,
  timeout = 99999,
  ...
)

Arguments

dir

Target directory to download files to

unzip

T/F if downloaded files should be unzipped

primary_files

T/F download basin forcing data for all three meteorology products, observed streamflow, basin metadata, readme files, and basin shapefiles

daymet_output

T/F download comparison model output files calibrated using daymet forcings

maurer_output

T/F download comparison model output files calibrated using maurer forcings

NLDAS_output

T/F download comparison model output files calibrated using NLDAS forcings

shapefiles

T/F download original basin boundary shapefiles

timeout

Max time allowed for download. Default: 99999 seconds (the files are large)

...

Additional arguments passed to download.file

Details

Note: Unzipping often fails, R unzip function is not very robust.

Examples

## Not run: 
downloadCAMELS('../CAMELS/', unzip=FALSE)

## End(Not run)

scantle/caRmels documentation built on Dec. 10, 2022, 8:13 a.m.