View source: R/copernicus_opendataset.R
copernicus_open_dataset | R Documentation |
Opens a dataset directly from Copernicus Marine using open_dataset. Returns a Python xarray.Dataset object that can be processed in R. Useful for exploring data without downloading full files. Uses stored credentials from options/environment variables if available.
copernicus_open_dataset(
dataset_id,
variables = NULL,
start_date = NULL,
end_date = NULL,
bbox = NULL,
depth = NULL,
dataset_version = NULL,
username = NULL,
password = NULL,
verbose_open = TRUE,
...
)
dataset_id |
ID of the dataset (exact). |
variables |
Vector or list of variables to open. If NULL, opens all. |
start_date |
Start date (YYYY-MM-DD). Optional. |
end_date |
End date (YYYY-MM-DD). Optional. |
bbox |
Vector of 4 values (xmin, xmax, ymin, ymax) for the region. Optional. |
depth |
Vector of 2 values: minimum and maximum depth. Optional. |
dataset_version |
Dataset version. Optional. |
username |
Copernicus Marine username (optional, will try to get from stored credentials). |
password |
Copernicus Marine password (optional, will try to get from stored credentials). |
verbose_open |
Show detailed messages. |
... |
Other extra arguments passed to the Python function. |
Python xarray.Dataset object, or NULL if it fails.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.