View source: R/download_smap.R
download_smap | R Documentation |
This function downloads SMAP data in HDF5 format.
download_smap(files, directory = NULL, overwrite = TRUE, verbose = TRUE)
files |
A |
directory |
A local directory path in which to save data, specified as a
character string. If left as |
overwrite |
TRUE or FALSE: should existing data files be overwritten? |
verbose |
TRUE or FALSE: should messages be printed to indicate that files are being downloaded? |
This function requires a username and password from NASA's Earthdata portal.
If you have an Earthdata username and password, pass them in using the
set_smap_credentials()
function.
If you do not yet have a username and password, register for one here: https://urs.earthdata.nasa.gov/
Returns a data.frame
that appends a column called
local_dir
to the input data frame, which consists of a character
vector specifying the local directory containing the downloaded files.
## Not run: files <- find_smap(id = "SPL4SMGP", dates = "2015-03-31", version = 4) # files[1, ] refers to the first available data file downloads <- download_smap(files[1, ]) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.