Installation#

Required dependencies#

CloudDrift requires the following dependencies:

if you install CloudDrift using uv, pip or Conda, these dependencies will be installed automatically. See Installation instructions for details.

Optional dependencies#

For plotting#

For development and testing#

For building the documentation#

Note: Optional plotting dependencies can be installed by specifying extras:

  • with uv: uv add 'clouddrift[plotting]'

  • with pip: pip install 'clouddrift[plotting]'

There is also clouddrift[all] to install all optional dependencies.

Installation instructions#

You can install the latest release of CloudDrift using uv, pip, or Conda. You can also install the latest development (unreleased) version from GitHub.

Note

The uv instructions below require uv to be installed. To install it, run:

curl -LsSf https://astral.sh/uv/install.sh | sh

See the uv installation docs for other platforms and methods.

uv#

In your project, type:

uv add clouddrift

To install optional dependencies needed by the clouddrift.plotting module, type:

uv add 'clouddrift[plotting]'

For local development, clone the repository and run:

uv sync

pip#

In your virtual environment, type:

pip install clouddrift

To install optional dependencies needed by the clouddrift.plotting module, type:

pip install 'clouddrift[plotting]'

Conda#

First add conda-forge to your channels in your Conda environment:

conda config --add channels conda-forge
conda config --set channel_priority strict

then install CloudDrift:

conda install clouddrift

To install optional dependencies needed by the clouddrift.plotting module, type:

conda install matplotlib cartopy

Developers#

If you need the latest development version, clone the repository and use uv:

git clone https://github.com/Cloud-Drift/clouddrift
cd clouddrift
uv sync

Alternatively, install directly from GitHub using pip:

pip install git+https://github.com/Cloud-Drift/clouddrift

Running tests#

To run the tests, first clone the repository and install dependencies with uv:

git clone https://github.com/cloud-drift/clouddrift
cd clouddrift
uv sync

Then, run the tests like this:

uv run pytest

A quick how-to guide is provided on the Usage page.