Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: search by tile using tileIdentifier #713

Merged
merged 2 commits into from
Apr 17, 2023
Merged

Conversation

sbrunato
Copy link
Collaborator

@sbrunato sbrunato commented Apr 17, 2023

Adds a new metadata and search parameter: tileIdentifier.

This standardizes the search by tile for the following providers: peps, theia, mundi, onda, creodias, cop_dataspace, planetary_computer, earth_search.
For example:

from eodag import EODataAccessGateway
dag = EODataAccessGateway()

products, _ = dag.search(
    productType="S2_MSI_L1C",
    start="2018-06-01",
    end="2018-06-15",
    tileIdentifier="31TFK"
)

assert products[0].properties["tileIdentifier"] == "31TFK"

You can check in the documentation that tileIdentifier is marked as queryable metadata for the mentioned providers.

The Search for products by tile tutorial has also been updated to include this feature.

EOProduct properties construction was updated to ignore values containing "Not Available" instead of just being equal to "Not Available" (needed for earth_search)

Resolves #671
Fixes #255
Fixes #556

@github-actions
Copy link
Contributor

github-actions bot commented Apr 17, 2023

Test Results

    2 files  ±0      2 suites  ±0   2m 8s ⏱️ -34s
379 tests ±0  376 ✔️ ±0  3 💤 ±0  0 ±0 
758 runs  ±0  752 ✔️ ±0  6 💤 ±0  0 ±0 

Results for commit 818ae6c. ± Comparison against base commit 36fd6ae.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 17, 2023

File Coverage
All files 89%
eodag/api/product/_product.py 85%

File Coverage
All files 88%
eodag/api/product/_product.py 85%
eodag/api/product/_product.py 85%

Minimum allowed coverage is 70%

Generated by 🐒 cobertura-action against 818ae6c

@sbrunato sbrunato merged commit 98eae2e into develop Apr 17, 2023
@sbrunato sbrunato deleted the tile-identifier branch April 17, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query by tile: unfound Sentinel-2 product Search PEPS S2 products by tile id
1 participant