download_SNODAS: Download SNODAS

View source: R/SNODAS_fun.R

download_SNODASR Documentation

Download SNODAS

Description

Downloads SNODAS data for a single date

Usage

download_SNODAS(date, out_dir = ".", overwrite = FALSE)

Arguments

date

⁠[date, POSIXt]⁠ The (1) date for which to download data.

out_dir

⁠[character = "."]⁠ The directory in which to save downloaded file.

overwrite

⁠[logical = FALSE]⁠ If data for date exists in out_dir, should it be overwritten?

Details

This function downloads SNODAS data over FTP from this site: "ftp://sidads.colorado.edu/DATASETS/NOAA/G02158/masked/".

This function is called by wrapper function TBD.

Examples


## Not run: 

download_SNODAS(as.Date("2020-02-02"), out_dir = tempdir())


## End(Not run)


bsmity13/snowdl documentation built on Feb. 24, 2024, 9:03 p.m.