Giter Site home page Giter Site logo

fitsumw / datacube-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opendatacube/datacube-core

0.0 2.0 0.0 36.17 MB

Open Data Cube analyses continental scale Earth Observation data through time

Home Page: http://www.opendatacube.org

License: Other

Batchfile 0.14% Shell 0.22% Jupyter Notebook 51.57% Python 48.07%

datacube-core's Introduction

Open Data Cube Core

Build Status Coverage Status Documentation Status

Overview

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 & usage of the datacube, and for documentation of the API.

Join our Slack if you need help setting up or using Data Cube Core.

Requirements

System

  • PostgreSQL 9.5+
  • Python Python 3.5+

Developer setup

  1. Clone:

    • git clone https://github.com/opendatacube/datacube-core.git
  2. Install the native libraries for GDAL & NetCDF4.

    • This depends on your OS.
    • Eg. yum install gdal
  3. Install Python dependencies:

    python setup.py develop

    Note that the versions must match between GDAL's Python bindings and the native GDAL library. If you receive a gdal error when installing dependencies, you may need to install a specific version first:

    eg. pip install gdal==2.0.1

  4. Run unit tests + PyLint

    ./check-code.sh

    (this script approximates what is run by Travis. You can alternatively run py.test yourself)

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

    ./check-code.sh integration_tests

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

    agdcintegration

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

Docker

Docker for OpenDataCube is in the early stages of development, and more documentation and examples of how to use it will be forthcoming soon. For now, you can build and run this Docker image from this repository as documented below.

Example Usage

There are a number of environment variables in use that can be used to configure the OpenDataCube. Some of these are built into the application itself, and others are specific to Docker, and will be used to create a configuration file when the container is launched.

You can build the image with a command like this:

docker build --tag opendatacube:local .

And it can then be run with this command:

docker run --rm opendatacube:local

If you don't need to build (and you shouldn't) then you can run it from a pre-built image with:

docker run --rm opendatacube/datacube-core

An example of starting a container with environment variables is as follows:

docker run \
   --rm \
   -e DATACUBE_CONFIG_PATH=/opt/custom-config.conf \
   -e DB_DATABASE=mycube \
   -e DB_HOSTNAME=localhost \
   -e DB_USERNAME=postgres \
   -e DB_PASSWORD=secretpassword \
   -e DB_PORT=5432 \
   opendatacube/datacube-core

This wont actually do anything, in order to make it work, you need an environment with Postgres, at least, and some scripts to index and possible ingest data.

Environment Variables

Most of the below environment variables should be self explanatory, and none are required (although it is recommended that you set them).

  • DATACUBE_CONFIG_PATH - the path for the config file for writing (also used by ODC for reading)
  • DB_DATABASE - the name of the postgres database
  • DB_HOSTNAME - the hostname of the postgres database
  • DB_USERNAME - the username of the postgres database
  • DB_PASSWORD - the password to used for the postgres database
  • DB_PORT - the port that the postgres database is exposed on

datacube-core's People

Contributors

alex-ip avatar alexgleith avatar andrewdhicks avatar asvincent avatar awalshie avatar benjimin avatar ceholden avatar cronosnull avatar daleroberts avatar gypsybojangles avatar harshurampur avatar jeremyh avatar kirill888 avatar kodexp avatar loicdtx avatar mpaget avatar omad avatar petewa avatar roarmstrong avatar rtaib avatar simonaoliver avatar sixy6e avatar spaxe avatar uchchwhash avatar v0lat1le avatar walsh-andrew avatar woodcockr avatar zhang01ga avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.