Learn R Programming

copernicusR (version 0.1.0)

copernicus_open_dataset: Open dataset from Copernicus Marine without download

Description

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.

Usage

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,
  ...
)

Value

Python xarray.Dataset object, or NULL if it fails.

Arguments

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.