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,
...
)
Python xarray.Dataset object, or NULL if it fails.
ID of the dataset (exact).
Vector or list of variables to open. If NULL, opens all.
Start date (YYYY-MM-DD). Optional.
End date (YYYY-MM-DD). Optional.
Vector of 4 values (xmin, xmax, ymin, ymax) for the region. Optional.
Vector of 2 values: minimum and maximum depth. Optional.
Dataset version. Optional.
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.