View source: R/mnet_download_mts.R
mnet_download_mts | R Documentation |
Downloads Mesonet Time Series (MTS) files from the Oklahoma Mesonet for a given set of station identifiers and date range
mnet_download_mts(
stid,
start_date = NULL,
end_date = NULL,
root_url = mnet_root_url(),
site_info = NULL,
file_cache = NULL,
ask = !silent,
silent = FALSE
)
stid |
a character vector of four-digit station identifiers for the Mesonet stations from which to download data |
start_date |
the first date for which to download data specified in Central Standard Time (i.e. "America/Costa_Rica") zone as a Date or POSIXt object or a string with the format YYYY-MM-DD, where YYYY is the four-digit year, MM is the two-digit numeric month and DD is the two-digit day of month |
end_date |
the final date for which to download data specified in Central Standard Time (i.e. "America/Costa_Rica") zone as a Date or POSIXt object or a string with the format YYYY-MM-DD, where YYYY is the four-digit year, MM is the two-digit numeric month and DD is the two-digit day of month |
root_url |
the root url from which to download MTS files (see mnet_root_url) |
site_info |
a data frame with site and soil information for each Oklahoma Mesonet station as returned by mnet_site_info. If NULL, mnet_site_info will be used to download this information internally |
file_cache |
a character string providing a path to the local Mesonet file cache. If NULL, the function will search for the local file cache and if not found will prompt the user to create one. |
ask |
whether or not to ask about creating a local Mesonet file cache |
silent |
whether to suppress output to terminal (TRUE) or allow output to terminal (FALSE) |
invisibly returns a character vector of the URLs for the downloaded files
mnet_download_mts("ACME",
start_date = "1994-01-01",
end_date = "1994-01-05")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.