Skip to main content

An analysis environment for satellite and other earth observation data

Project description

Open Data Cube Core

Build Status Coverage Status Documentation Status Discord

Overview

The Open Data Cube Core provides an integrated gridded data analysis environment for decades of analysis ready earth observation satellite and related data from multiple satellite and other acquisition systems.

Documentation

See the user guide for installation and usage of the datacube, and for documentation of the API.

Join our Discord if you need help setting up or using the Open Data Cube.

Please help us to keep the Open Data Cube community open and inclusive by reading and following our Code of Conduct.

This is a 1.9.x series release of the Open Data Cube. If you are migrating from a 1.8.x series release, please refer to the 1.8.x to 1.9.x Migration Notes.

Requirements

System

  • PostgreSQL 15+

  • Python 3.10+

Developer setup

  1. Clone:

    • git clone https://github.com/opendatacube/datacube-core.git

  2. Create a Python environment for using the ODC. We recommend Mambaforge as the easiest way to handle Python dependencies.

mamba env create -f conda-environment.yml
conda activate cubeenv
  1. Install a develop version of datacube-core.

cd datacube-core
pip install --upgrade -e .  --group dev
  1. Install the pre-commit hooks to help follow ODC coding conventions when committing with git.

pre-commit install
  1. Run unit tests + PyLint

Install test dependencies using:

pip install --upgrade -e '.' --group dev

If install for these fails, please lodge them as issues.

Run unit tests with:

./check-code.sh

(this script approximates what is run by GitHub Actions. You can alternatively run pytest yourself).

  1. (or) Run all tests, including integration tests.

    ./check-code.sh integration_tests

    • Assumes the existence of two password-less Postgres databases running on localhost called pgintegration and pgisintegration.

    • Otherwise copy integration_tests/integration.conf to ~/.datacube_integration.conf and edit to customise.

    • For instructions on setting up a password-less Postgres database, see

      the developer setup instructions.

Alternatively one can use the opendatacube/datacube-tests docker image to run tests. This docker includes database server pre-configured for running integration tests. Add --with-docker command line option as a first argument to ./check-code.sh script.

./check-code.sh --with-docker integration_tests

To run individual tests in a docker container

docker build --tag=opendatacube/datacube-tests-local --no-cache --progress plain -f docker/Dockerfile .

docker run -ti -v $(pwd):/code opendatacube/datacube-tests-local:latest pytest integration_tests/test_filename.py::test_function_name

Developer setup on Ubuntu

Building a Python virtual environment on Ubuntu suitable for development work.

Install dependencies:

sudo apt-get update
sudo apt-get install -y \
    autoconf automake build-essential make cmake \
    graphviz \
    python3-venv \
    python3-dev \
    libpq-dev \
    libyaml-dev \
    libnetcdf-dev \
    libudunits2-dev

Build the python virtual environment:

pyenv="${HOME}/.envs/odc"  # Change to suit your needs
mkdir -p "${pyenv}"
python3 -m venv "${pyenv}"
source "${pyenv}/bin/activate"
pip install -U pip wheel cython numpy
pip install -e '.' --group dev

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

datacube-1.9.19.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

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

datacube-1.9.19-py3-none-any.whl (475.5 kB view details)

Uploaded Python 3

File details

Details for the file datacube-1.9.19.tar.gz.

File metadata

  • Download URL: datacube-1.9.19.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for datacube-1.9.19.tar.gz
Algorithm Hash digest
SHA256 39b94e146a05b1c13c4bf974f546b3a0dd70ed5e85a3ea5b57fc095f1a419613
MD5 ca29070e453509f3e1c94ecb2f391ce7
BLAKE2b-256 69b241db7e5abb17a4dc1e5554491ab1d393c77b71b70987d3d86ca403b58b26

See more details on using hashes here.

Provenance

The following attestation bundles were made for datacube-1.9.19.tar.gz:

Publisher: main.yml on opendatacube/datacube-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datacube-1.9.19-py3-none-any.whl.

File metadata

  • Download URL: datacube-1.9.19-py3-none-any.whl
  • Upload date:
  • Size: 475.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for datacube-1.9.19-py3-none-any.whl
Algorithm Hash digest
SHA256 1d3f9de2544dabb87a7bb7fd45c5f7a305cf730b1585b791cf6f34843a28ace4
MD5 78356f638991f4a4af85692ce5cc7bd8
BLAKE2b-256 db85b36680c68d642ea8cd82f092ec20a894da695064e2b6695e7a6a84b313ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for datacube-1.9.19-py3-none-any.whl:

Publisher: main.yml on opendatacube/datacube-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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