Skip to main content

Earth Observation Data Access Gateway

Project description

https://eodag.readthedocs.io/en/latest/_static/eodag_bycs.png

pypi-badge conda-badge rtd-badge gha-badge ghi-badge binder-badge

license-badge versions-badge zenodo-badge


Checkout EODAG Jupyterlab extension: eodag-labextension! This will bring a friendly UI to your notebook and help you search and browse for EO products using 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 collections: list of supported products and their description

  • Search products (by collection or uid): 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 (STAC, OpenSearch, OData, …), building paths, retrieving quicklook, combining results

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

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

Read the documentation for more insights.

EODAG overview

Installation

EODAG is available on PyPI:

python -m pip install eodag

And with conda from the conda-forge channel:

conda install -c conda-forge eodag

[!IMPORTANT]

Breaking change in v3.0.0: Please note that EODAG comes with a minimal set of dependencies. If you want more features, please install using one of the available extras.

Usage

For downloading you will need to fill your credentials for the desired providers in your eodag user configuration file. The file will automatically be created with empty values on the first run.

Python API

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

from eodag import EODataAccessGateway

dag = EODataAccessGateway()

search_results = dag.search(
    collection='S2_MSI_L1C',
    geom={'lonmin': 1, 'latmin': 43.5, 'lonmax': 2, 'latmax': 44}, # accepts WKT polygons, shapely.geometry, ...
    start='2021-01-01',
    end='2021-01-15'
)

product_paths = dag.download_all(search_results)

This will search for Sentinel 2 level-1C products on the default provider and return the found products first page and an estimated total number of products matching the search criteria. And then it will download these products. Please check the Python API User Guide for more details.

[!IMPORTANT]

Breaking change in v3.0.0: search() method now returns only a single SearchResult instead of a 2 values tuple.

Command line interface

Start playing with the CLI:

  • To search for some products:

    eodag search --collection S2_MSI_L1C --box 1 43 2 44 --start 2021-03-01 --end 2021-03-31

    The request above searches for S2_MSI_L1C collections in a given bounding box, in March 2021. It saves the results in a GeoJSON file (search_results.geojson by default).

    Results are paginated, you may want to get all pages at once with --all, or search products having 20% of maximum coud cover with --cloudCover 20. For more information on available options:

    eodag search --help
  • To download the result of the previous call to search:

    eodag download --search-results search_results.geojson
  • To download only the result quicklooks of the previous call to search:

    eodag download --quicklooks --search-results search_results.geojson
  • To list all available collections and supported providers:

    eodag list
  • To list available collections on a specified supported provider:

    eodag list -p creodias
  • 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. For a full verbose output, do for example: eodag -vvv list

Contribute

Have you spotted a typo in our documentation? Have you observed a bug while running EODAG? Do you have a suggestion for a new feature?

Don’t hesitate and open an issue or submit a pull request, contributions are most welcome!

For guidance on setting up a development environment and how to make a contribution to eodag, see the contributing guidelines.

License

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

Authors

EODAG has been created by CS GROUP - France.

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-4.0.0.tar.gz (10.9 MB view details)

Uploaded Source

Built Distribution

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

eodag-4.0.0-py3-none-any.whl (11.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eodag-4.0.0.tar.gz
  • Upload date:
  • Size: 10.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for eodag-4.0.0.tar.gz
Algorithm Hash digest
SHA256 88f3d4acae0bbd4fcc3c3cef5ea459e6cc3edb53584056ca77dc7025a70eb889
MD5 17528c05d91a31bcaabe641141838f56
BLAKE2b-256 efd282c90ba1188687a5b27d7898ab205e4b3ffc6c94b0bf2a188e82dadf129e

See more details on using hashes here.

File details

Details for the file eodag-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: eodag-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for eodag-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a2766c7a8dd880f58a53918079cdaac13e378ffa7d627ab537af34dfbb737ab
MD5 7435475b462fe835b1be1318622274e7
BLAKE2b-256 7c283e21ff7a068047296ebc6420abc616975ce3a0d33f9ed13bf070667a1eae

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