Skip to main content

Command line interface and Python API for accessing Copernicus Marine data and related services.

Project description

Copernicus Marine Service Toolbox (CLI & Python)

PyPI Supported Versions Supported Platforms Docker Documentation Code Style Licence Downloads

Copernicus Marine Service and Mercator Ocean international logos

Features

The Copernicus Marine Toolbox offers capabilities through both Command Line Interface (CLI) and Python API:

  • Metadata Information: List and retrieve metadata information on all products, datasets, variables.
  • Subset Datasets: Subset datasets to extract only the parts of interest, in preferred format, such as Analysis-Ready Cloud-Optimized (ARCO) Zarr or NetCDF file format.
  • Advanced Filters: Apply simple or advanced filters to get multiple files, in original formats like NetCDF/GeoTIFF, via direct Marine Data Store connections.
  • No Quotas: Enjoy no quotas, neither on volume size nor bandwidth.

Documentation

For detailed and up-to-date information, please refer to the Copernicus Marine Toolbox Documentation. It includes exhaustive guides, API specifications, and tutorials, automatically versioned.

For additional documentation and smooth transition for users of legacy services such as MOTU, OPeNDAP, or FTP, visit our Help Center.

Installation

The Copernicus Marine Toolbox can be installed and utilized in various ways to suit different user preferences and system configurations. For detailed guidance, refer to the installation page of the toolbox documentation.

Mamba | Conda

mamba install conda-forge::copernicusmarine --yes

or conda:

conda install -c conda-forge copernicusmarine

Pip

python -m pip install copernicusmarine

Binaries (no-installation)

These binaries require no installation and run independently on the user system. Simply download (from release page or check the installation page of the toolbox documentation) and run the binary for instant access to the toolbox Command Line Interface functionalities.

Docker

docker pull copernicusmarine/copernicusmarine:latest

Dependencies

Note that the use of xarray<2024.7.0 with numpy>=2.0.0 leads to inconsistent results. See this issue: xarray issue.

Command Line Interface (CLI)

The --help option

To discover commands and their available options, consider appending --help on any command line.

Example:

copernicusmarine --help

Returns:

Usage: copernicusmarine [OPTIONS] COMMAND [ARGS]...

Options:
  -V, --version  Show the version and exit.
  -h, --help     Show this message and exit.

Commands:
  describe  Print Copernicus Marine catalogue as JSON.
  get       Download originally produced data files.
  login     Create a configuration file with your Copernicus Marine credentials.
  subset    Download subsets of datasets as NetCDF files or Zarr stores.

Python package (API)

The copernicusmarine exposes a Python interface to allow you to call commands as functions.

Version management

We are using semantic versioning X.Y.Z → MAJOR.MINOR.PATCH → for example 1.0.2. We follow the SEMVER principles:

Given a version number MAJOR.MINOR.PATCH, increment the:

  • MAJOR version when you make incompatible API changes
  • MINOR version when you add functionality in a backward compatible manner
  • PATCH version when you make backward compatible bug fixes

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

Contribution

We welcome contributions from the community to enhance this package. If you find any issues or have suggestions for improvements, please check out our Report Template.

You are welcome to submit issues to the GitHub repository or create a pull request; however, please be advised that we may not respond to your request or may provide a negative response.

Future improvements & Roadmap

To keep up to date with the most recent and planned advancements, including revisions, corrections, and feature requests generated from users' feedback, please refer to our Roadmap.

Join the community

Get in touch!

Licence

Licensed under the EUPL

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

copernicusmarine-2.3.0.tar.gz (93.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

copernicusmarine-2.3.0-py3-none-any.whl (125.3 kB view details)

Uploaded Python 3

File details

Details for the file copernicusmarine-2.3.0.tar.gz.

File metadata

  • Download URL: copernicusmarine-2.3.0.tar.gz
  • Upload date:
  • Size: 93.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.0 Linux/5.15.0-135-generic

File hashes

Hashes for copernicusmarine-2.3.0.tar.gz
Algorithm Hash digest
SHA256 6506022e261e4adbdd8e35a9733a48f0fa3c5bca1da2c1cfb2d0a54c5a775460
MD5 2e13f041595c3939146c004860dd0e44
BLAKE2b-256 874400046a7501626ddb83feaf1be2da870190fac9cf4c27266ea98430ed932c

See more details on using hashes here.

File details

Details for the file copernicusmarine-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: copernicusmarine-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 125.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.0 Linux/5.15.0-135-generic

File hashes

Hashes for copernicusmarine-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed48fe06979fe658af045f0ba5756d4cb35a2754f67cc3a8b636062f2c28a501
MD5 d6158950d8d05afd4072f6359b00a7f9
BLAKE2b-256 e8b74a3e7885c524cc1da667c414e97ac12a81051596146bec99e0113429f759

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page