Download satellite imagery and climate/atmospheric datasets using the SkyWatch API based on a query output object obtained from the querySW function.
data.frame returned by the querySW function
logical expression indicating elements or rows to keep. See details
string; personal alphanumeric API key. See Details section
x must be a data.frame returned by the querySW function.
indexes is NULL, all files in the download_path column in
x are downloaded. A numeric vector indicating rows of
x can be provided to
indexes to download only selected files in the download_path column of
subset argument works on the rows of the
x object. Columns can be referred to (by name) as variables in the expression (see the examples).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
## Not run: api_key <- "your_personal_alphanumeric_api_key" # Set the SkyWatchr.apikey option options(SkyWatchr.apikey = api_key) res <- querySW(time_period = "2015-06", longitude_latitude = "48.676074,31.321119", data_level = 3) View(res) # Download all files downloadSW(res) # Download a subset downloadSW(res[c(1,3), ]) # Use an expresion to subset files to be downloaded downloadSW(res, source == "MOPITT" & size_kb < 2400) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.