Skip to main content

Sentinelsat plugin to EODAG (https://github.com/CS-SI/eodag)

Project description

https://badge.fury.io/py/eodag-sentinelsat.svg https://img.shields.io/pypi/l/eodag-sentinelsat.svg https://img.shields.io/pypi/pyversions/eodag-sentinelsat.svg

eodag-sentinelsat

This is a repository for sentinelsat plugin to EODAG. It’s an Api plugin that enables to search and download EO products from catalogs implementing the SciHub / Copernicus Open Access Hub interface. It is basically a wrapper around sentinelsat, enabling it to be used on eodag.

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

Installation

eodag-sentinelsat is on PyPI:

python -m pip install eodag-sentinelsat

Configuration

  1. Register to Scihub to get the required credentials (username/password).

  2. Follow the guidelines provided in EODAG’s documentation to configure the plugin. You can create a dedicated configuration file or edit the default one ~/.config/eodag/eodag.yml:

    scihub:
        priority: 2  # Must be higher than the other providers' priorities
        api:
            credentials:
                username: "PLEASE_CHANGE_ME"  # Your own username
                password: "PLEASE_CHANGE_ME"  # Your own password

Examples

Python API:

import eodag

dag = EODataAccessGateway()

search_results, _ = dag.search(
    productType="S2_MSI_L1C",
    start="2021-03-01",
    end="2021-03-31",
    geom={"lonmin": 1, "latmin": 43, "lonmax": 2, "latmax": 44}
)
product_paths = dag.download_all(search_results)

CLI:

eodag search \
   --productType S2_MSI_L1C \
   --start 2018-01-01 \
   --end 2018-01-31 \
   --box 1 43 2 44 \
   --storage my_search.geojson
eodag download --search-results my_search.geojson

Contribute

If you intend to contribute to eodag-sentinelsat source code:

git clone https://github.com/CS-SI/eodag-sentinelsat.git
cd eodag-sentinelsat
python -m pip install -e .[dev]
pre-commit install

We use pre-commit to run a suite of linters, formatters and pre-commit hooks (black, isort, flake8) to ensure the code base is homogeneously formatted and easier to read. It’s important that you install it, since we run the exact same hooks in the Continuous Integration.

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.py

LICENSE

eodag-sentinelsat is licensed under GPLv3. See LICENSE for details.

Authors

eodag-sentinelsat has been created by CS GROUP - France.

Credits

See NOTICE file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eodag_sentinelsat-0.4.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

eodag_sentinelsat-0.4.1-py2.py3-none-any.whl (25.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file eodag_sentinelsat-0.4.1.tar.gz.

File metadata

  • Download URL: eodag_sentinelsat-0.4.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for eodag_sentinelsat-0.4.1.tar.gz
Algorithm Hash digest
SHA256 bc8eeb83585dc9265bad704ccca7eac665376ea99b742c996bdde7ca1582332b
MD5 875ed2196f14193dddfa23ad916a80d9
BLAKE2b-256 2edc6d22ca67d0366ffa1206b18e4a072d5ace629cc0ad8a972fac3f8a140b16

See more details on using hashes here.

File details

Details for the file eodag_sentinelsat-0.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: eodag_sentinelsat-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for eodag_sentinelsat-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f48004f19ee3a992f8a6a850de8fbf50afa3cd61c3383ae6981f857455b19ff9
MD5 2f30ea6768cbb21dca4dbfb9f9654b07
BLAKE2b-256 ed8fc2af354318607216665a4da58d6f07a46d00f862f8759f5a12573d6f784b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page