Skip to main content

Earth Observation Data Access Gateway

Project description

eodag

EODAG (Earth Observation Data Access Gateway) is a command line tool and a plugin-oriented Python framework for searching, aggregating results and downloading remote sensed images while offering a unified API for data access regardless of the data provider. The EODAG SDK is structured around three functions:

  • List product types: list of supported products and their description

  • Search products (by product type) : searches products according to the search criteria provided

  • Download products : download product “as is”

EODAG is developed in Python. It is structured according to a modular plugin architecture, easily extensible and able to integrate new data providers. Three types of plugins compose the tool:

  • Catalog search plugins, responsible for searching data (OpenSearch, CSW, …), building paths, retrieving quicklook, combining results

  • Download plugins, allowing to download and retrieve data locally (via FTP, HTTP, ..), always with the same directory organization

  • Authentication plugins, which are used to authenticate the user on the external services used (JSON Token, Basic Auth, OAUTH, …).

Read the documentation for more insights.

Installation

EODAG is on PyPI:

python -m pip install eodag

Usage

Command line interface

Create a configuration file from the template user_conf_template.yml provided with the repository, filling in your credentials as expected by each provider (note that this configuration file is required by now. However, this will change in the future).

Then you can start playing with it:

  • To search for products and crunch the results of the search:

    eodag search \
    --conf my_conf.yml \
    --geometry 1 43 2 44 \
    --startTimeFromAscendingNode 2018-01-01 \
    --completionTimeFromAscendingNode 2018-01-31 \
    --cloudCover 20 \
    --productType S2_MSI_L1C
    --cruncher FilterLatestIntersect \
    --storage my_search.geojson

The request above search for product types S2_MSI_L1C and will crunch the result using cruncher FilterLatestIntersect and storing the overall result to my_search.geojson.

You can pass arguments to a cruncher on the command line by doing this (example with using FilterOverlap cruncher which takes minimum_overlap as argument):

eodag search -f my_conf.yml -b 1 43 2 44 -s 2018-01-01 -e 2018-01-31 -p S2_MSI_L1C \
             --cruncher FilterOverlap \
             --cruncher-args FilterOverlap minimum_overlap 10

The request above means : “Give me all the products of type S2_MSI_L1C, use FilterOverlap to keep only those products that are contained in the bbox I gave you, or whom spatial extent overlaps at least 10% (minimum_overlap) of the surface of this bbox”

  • To download the result of a previous call to search:

    eodag download --conf my_conf.yml --search-results my_search.geojson
  • To list all available product types and supported providers:

    eodag list
  • To list available product types on a specified supported provider:

    eodag list -p airbus-ds
  • To see all the available options and commands:

    eodag --help
  • To print log messages, add -v to eodag master command. e.g. eodag -v list. The more v given (up to 3), the more verbose the tool is.

Python API

Example usage for interacting with the api in your Python code:

from eodag import EODataAccessGateway

dag = EODataAccessGateway(user_conf_file_path='/path/to/user/conf.yaml')
product_type = 'S2_MSI_L1C'
footprint = {'lonmin': 1, 'latmin': 43.5, 'lonmax': 2, 'latmax': 44}
start, end = '2018-01-01', '2018-01-31'
search_results = dag.search(
    product_type,
    geometry=footprint,
    startTimeFromAscendingNode=start,
    completionTimeFromAscendingNode=end,
)
product_paths = dag.download_all(search_results)
for path in product_paths:
    print('Downloaded : {}'.format(path))

Contribute

If you intend to contribute to eodag source code:

git clone https://bitbucket.org/geostorm/eodag.git
cd eodag
python -m pip intall -r requirements-dev.txt

To run the default test suite (which excludes end-to-end tests):

tox

To only run end-to-end test:

tox -- tests.test_end_to_end

To run the entire tests (units, integraton and end-to-end):

tox -- tests eodag

LICENSE

EODAG is licensed under Apache License v2.0. See LICENSE file for details.

AUTHORS

EODAG is developed by CS Systèmes d’Information.

CREDITS

EODAG is built on top of amazingly useful open source projects. See NOTICE file for details about those projects and their licenses. Thank you to all the authors of these projects !

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

eodag-0.6.1.tar.gz (504.2 kB view details)

Uploaded Source

Built Distribution

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

eodag-0.6.1-py2.py3-none-any.whl (96.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file eodag-0.6.1.tar.gz.

File metadata

  • Download URL: eodag-0.6.1.tar.gz
  • Upload date:
  • Size: 504.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.5

File hashes

Hashes for eodag-0.6.1.tar.gz
Algorithm Hash digest
SHA256 3f104247c2ec7283441be5b494f1094d68d7230decd4fec95fa5c524951b5819
MD5 dcd9f88a5b5e54744600c90e949c6b0b
BLAKE2b-256 ef6869c51890116f5501de168171c96517487a71c67cf8e88fb28d34772979e7

See more details on using hashes here.

File details

Details for the file eodag-0.6.1-py2.py3-none-any.whl.

File metadata

  • Download URL: eodag-0.6.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 96.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.5

File hashes

Hashes for eodag-0.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7413a2d38fb66f968cfa350b7e143702aa1f122d50418d5655f939adfcb1b45b
MD5 0ae8022160ceb934e6c0624e17cecfe1
BLAKE2b-256 28ab5adfd523f78876b31227fa9095610f322ddb3ede790706afdf1ae90d6045

See more details on using hashes here.

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