This repo contains (mostly numba accelerated) algorithmic code and selected additional functions used in the WFP HumanitarianDataCube (HDC).
# mamba/conda
mamba install -c wfp-ram hdc-algo
# pip
pip install --extra-index-url=https://data.earthobservation.vam.wfp.org/pypi/ hdc-algoThis project uses uv for dependency management.
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and setup
git clone https://github.com/WFP-VAM/hdc-algo.git
cd hdc-algo
uv sync --all-extras --dev
# Run tests
uv run pytest
# Run linting and formatting
uv run ruff check hdc tests
uv run ruff format hdc tests
uv run mypy hdc