copernicus_ftp_list | R Documentation |
Full marine data sets can be downloaded using the File Transfer Protocol (FTP). Use these functions to list download locations and get the files.
copernicus_ftp_list(
product,
layer,
username = getOption("CopernicusMarine_uid", ""),
password = getOption("CopernicusMarine_pwd", ""),
recursive = TRUE,
subdir = NULL
)
copernicus_ftp_get(
url,
destination,
show_progress = TRUE,
overwrite = FALSE,
username = getOption("CopernicusMarine_uid", ""),
password = getOption("CopernicusMarine_pwd", "")
)
product |
An identifier (type |
layer |
The name of a desired layer within a product (type |
username |
Your Copernicus marine user name. Can be provided as
|
password |
Your Copernicus marine password. Can be provided as
|
recursive |
A |
subdir |
A |
url |
The URL of the file to be downloaded. Obtain this URL with
|
destination |
File or path where the requested file will be downloaded to. |
show_progress |
A |
overwrite |
A |
In case of copernicus_ftp_list
a tibble
is returned containing available URLs
(for the specified product and layer) and some meta information is returned.
In case of copernicus_ftp_get
an invisible logical
value is returned, indicating whether
the requested file is successfully stored at the destination
path.
Pepijn de Vries
## Not run:
## Assuming that Copernicus account details are provided as `options`
cop_ftp_files <- copernicus_ftp_list("GLOBAL_OMI_WMHE_heattrp")
destination <- tempdir()
copernicus_ftp_get(cop_ftp_files$url[[1]], destination)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.