View source: R/download.SNODAS.R
download.SNODAS | R Documentation |
Downloads SNODAS data from the UC Boulder FTP server
dates |
A vector of date objects or strings that can be converted to dates by lubridate::ymd() |
path |
A path to save the files locally, with a trailing slash (e.g. the default is './SNODAS/'). If the directory does not exist it will be created. |
overwrite |
Should extant files be overwritten? |
masked |
Do you want CONUS snodas data or unmasked North America (NB: unmasked has much more restricted dates available) |
parallel |
Do you want to download and process files in parallel (for greatly enhanced performance?) via the doParallel package. |
ncores |
If parallel=TRUE, how many cores should R use for the process. Default is 3 as a "safe" number, but can be adjusted higher if your computer has more cores available. |
unzip |
Should the files be unzipped or will they be accessed in their compressed state? Unzipping dramatically increases read performance but will take up much more hard drive space. If you're only going to make one spatial subset of the data, leaving the files comopressed will be faster and take up less storage. But if you're going to use the SNODAS data over and over again, unzip the data (storage space permitting) |
NULL (This function is only used for its side effects. SNODAS data for the specified dates will be downloaded and untarballed in the specified path.)
download.SNODAS(dates=c('2010-02-20', '2015-02-10'), path='./SNODAStest/')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.