Skip to main content

[!CAUTION]

This repository is no longer maintained as SciHub / Copernicus Open Access Hub is now closed. You should now directly use EODAG with cop_dataspace (Copernicus Dataspace Ecosystem) provider which is the official data distribution system for Copernicus Sentinel data.

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.

Metadata

Release files for eodag-sentinelsat 0.4.1.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eodag-sentinelsat 0.4.1.post1
File Size Uploaded
eodag_sentinelsat-0.4.1.post1.tar.gz 22.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eodag-sentinelsat 0.4.1.post1
File Interpreter ABI Platform
eodag_sentinelsat-0.4.1.post1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 48.4 kB

Release files / eodag_sentinelsat-0.4.1.post1.tar.gz

Download URL eodag_sentinelsat-0.4.1.post1.tar.gz
Size 22.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fe4df7a4fddda5134bc54c1bb6d0b1a867d679a2b5c37d51a25803c5551e6434
BLAKE2b-256 checksum
How to use checksums
908726bcfd403e3c2b9db57825e4d9a1b7c54b6d8447cea1f045345ea113c459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / eodag_sentinelsat-0.4.1.post1-py2.py3-none-any.whl

Download URL eodag_sentinelsat-0.4.1.post1-py2.py3-none-any.whl
Size 25.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1c30d461a37e3c3f2fec59e72f7d7f00d2762d9b33e02973a351048528df702a
BLAKE2b-256 checksum
How to use checksums
d76a852b58440917b07eaa3a91a7b6a69943abcea281f3b989a65f015995d0b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.4.1.post1 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page