Installation

Basic Installation

Install from PyPI:

pip install cng-datasets

Or install from source:

git clone https://github.com/boettiger-lab/datasets.git
cd datasets
pip install -e .

Development Installation

To install with development tools:

pip install -e ".[dev]"

This includes:

  • pytest for testing

  • black for code formatting

  • ruff for linting

  • mypy for type checking

Raster Processing Support

For raster processing, GDAL requires system libraries. Install GDAL first:

Ubuntu/Debian

sudo apt-get install gdal-bin libgdal-dev python3-gdal
pip install -e ".[raster]"

macOS

brew install gdal
pip install -e ".[raster]"

Verifying Installation

Check that the package is installed correctly:

cng-datasets --help

You should see the command-line interface help message.