Awesome Open Source
Awesome Open Source

Open Data Cube Core

|Build Status| |Coverage Status| |Documentation Status|


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.


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

Join our Slack <>__ 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 <>__.



-  PostgreSQL 9.5+
-  Python 3.6+

Developer setup

1. Clone:

   -  ``git clone``

2. Create a Python environment to use ODC within, we recommend `conda <>`__ as the
   easiest way to handle Python dependencies.


   conda create -n odc -c conda-forge python=3.6 datacube pre_commit
   conda activate odc

3. Install a develop version of datacube-core.


   cd datacube-core
   pip install --upgrade -e .

4. Install the `pre-commit <>`__ hooks to help follow ODC coding
   conventions when committing with git.


   pre-commit install

5. Run unit tests + PyLint

   (this script approximates what is run by Travis. You can
   alternatively run ``pytest`` yourself). Some test dependencies may need to be installed, attempt to install these using:
   ``pip install --upgrade -e '.[test]'``
   If install for these fails please lodge them as issues.

6. **(or)** Run all tests, including integration tests.

   ``./ integration_tests``

   -  Assumes a password-less Postgres database running on localhost called


   -  Otherwise copy ``integration_tests/agdcintegration.conf`` to
      ``~/.datacube_integration.conf`` and edit to customise.

Alternatively one can use ``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 ``./`` script.


   ./ --with-docker integration_tests

Developer setup on Ubuntu

Building 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

Building 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 '.[dev]' pip install flake8 mypy pylint autoflake black

.. |Build Status| image:: :target: .. |Coverage Status| image:: :target: .. |Documentation Status| image:: :target:

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (53,170
hacktoberfest (4,233
numpy (259
gis (166
scientific-computing (115
remote-sensing (59
raster (33
gdal (20
netcdf (18