Downloads .nc files from the Copernicus Marine catalog. Allows specifying all options of the Python function. Uses stored credentials from options/environment variables if available.
copernicus_download(
dataset_id,
variables,
start_date,
end_date,
bbox = c(-180, 179.92, -80, 90),
depth = c(0.494, 0.494),
dataset_version = "202406",
output_file = NULL,
username = NULL,
password = NULL,
verbose_download = TRUE,
...
)
Absolute path to the downloaded file, or NULL if it fails.
ID of the dataset (exact).
Vector or list of variables to download.
Download start date (YYYY-MM-DD).
Download end date (YYYY-MM-DD).
Vector of 4 values (xmin, xmax, ymin, ymax) for the region.
Vector of 2 values: minimum and maximum depth.
Dataset version.
Output file path. By default, generates one in tempdir().
Copernicus Marine username (optional, will try to get from stored credentials).
Copernicus Marine password (optional, will try to get from stored credentials).
Show detailed messages.
Other extra arguments passed to the Python function.